The 365 Data Science team is proud to invite you to our own community forum. A very well built system to support your queries, questions and give the chance to show your knowledge and help others in their path of becoming Data Science specialists.
Ask
Anybody can ask a question
Answer
Anybody can answer
Vote
The best answers are voted up and moderated by our team

MNIST – Importing dataset: ImportError: cannot import name ‘export_saved_model’ from ‘tensorflow.python.keras.saving.saved_model’

MNIST – Importing dataset: ImportError: cannot import name ‘export_saved_model’ from ‘tensorflow.python.keras.saving.saved_model’

Super Learner
0
Votes
1
Answer
Please, I need help with this problem. MNIST - Importing dataset:
===================

import numpy as np
import tensorflow as tf
from tensorflow.examples.tutorials.mnist import input_data

mnist = input_data.read_data_sets(“MNIST_data/”, one_hot=True)

=============

ImportError: cannot import name ‘export_saved_model’ from ‘tensorflow.python.keras.saving.saved_model’ (C:\Users\abcde\anaconda3\lib\site-packages\tensorflow\python\keras\saving\saved_model\__init__.py)

1 Answer

Super Learner
0
Votes

Finally, after four days of trail & error, here is the solution in this video: 

 

For me : I created two environments in Anaconda and stopped having incompatibility issues when: Environment_1: Tensorflow_1 works for python_3.7 & Environment_2: Tensorflow_2 works with python_3.8….

1 week