I keep getting this error when importing tensorflow as tf with the below error text:
ImportError: cannot import name 'export_saved_model' from 'tensorflow.python.keras.saving.saved_model'
Code used is simply:
import tensorflow as tf
I have done:
- uninstalled and installed tensorflow through pip and condo via anaconda cmd prompt
- Restarted and cleared outputs from kernel, closing the jupyternotebook and restarting my computer
Code used for tensorflow unstallation:
pip uninstall tensorfloworconda uninstall -y tensorflow
Code used for tensorflow installation:
pip install tensorfloworconda install tensorflow
I can't seem to figure why it keeps saying:
"ImportError: cannot import name 'export_saved_model' from 'tensorflow.python.keras.saving.saved_model'"