Machine learning data sets used mnist error No module named 'tensorflow.examples.tutorials' solution

There are examples check the installation directory tensorflow package this folder.

Everyone file path is different, I'm in ... \ Python3 \ Lib \ site-packages, there are folders tensorflow, tensorflow_core, tensorflow_estimator and other folders in that directory. Tensorflow into the folder, examples found inside a folder, but the folder only saved_model this document, no tutorials found.

Next we enter the home page to download the file github of tensorflow missing. I downloaded directly to the whole, then the downloaded files tensorflow-master \ tensorflow \ examples \ find here tutorials, the tutorials entire folder to the above-mentioned examples folder (ie tensorflow \ examples \)

After you can successfully run from tensorflow.examples.tutorials.mnist import input_data up.

Detailed reference to the god blog https://blog.csdn.net/qq_43060552/article/details/103189040

Guess you like

Origin www.cnblogs.com/xuange1/p/12619003.html