起初,刚输入from tensorflow.examples.tutorials.mnist import input_data时

弹出了错误ModuleNotFoundError: No module named 'tensorflow.examples.tutorials'

解决这个问题需要解决两点
1.路径C:\Users\Administrator\Anaconda3\Lib\site-packages\tensorflow_core\examples下需要有tutorials文件夹
没有的话在https://github.com/tensorflow/tensorflow下载然后粘贴到该文件夹

此时你不确定你的包的路径是否和上面的一样,此时你可以这样:

tensorflow.examples.tutorials——吐血

有可能你还是找不到路径,很可能是路径的部分文件夹被隐藏了,可以在搜索中查找其中一个文件夹,也可以在设置中显示隐藏文件夹。

 

 

相关文章:

  • 2022-12-23
  • 2021-11-11
  • 2021-10-06
  • 2021-08-08
  • 2021-11-03
  • 2021-12-27
  • 2021-09-05
  • 2021-11-10
猜你喜欢
  • 2021-06-02
  • 2021-08-03
  • 2021-12-30
  • 2022-01-21
  • 2022-12-23
  • 2021-06-16
相关资源
相似解决方案