pycharm import input_data ImportError: No module named 'input_data'

Copyright statement: This article is an original article by the blogger and may not be reproduced without the blogger's permission. https://blog.csdn.net/yyhaohaoxuexi/article/details/85716597

I started learning MNIST handwriting recognition today, and it failed when I first imported input_data. Error report: ImportError: No module named 'input_data', I simply imported tensorflow, but it also failed. The error is also that there is no such package, I clearly installed it.

Call the native python to view tensorflow, it does exist:insert image description here

  • Reason: The interpreter of pycharm is the current project, not the locally installed python.
  • Solution: File - Settings - Project Interpreter, select Interpreter as the locally installed python; import input_datachange it from tensorflow.examples.tutorials.mnist import input_datato
    insert image description here

Related Posts