killernyl
七月的風鈴
2019-05-26 21:27
采纳率: 0%
浏览 563

手写体识别激活总是报错是因为什么?

报错信息:
D:\Python\anaconda\Anaconda3\python.exe "D:\Python\pycharm\PyCharm 2018.1.3\helpers\pydev\pydev_run_in_console.py" 57587 57588 D:/untitled/MNIST.py
D:\Python\anaconda\Anaconda3\lib\site-packages\IPython\core\history.py:226: UserWarning: IPython History requires SQLite, your history will not be saved
warn("IPython History requires SQLite, your history will not be saved")
Running D:/untitled/MNIST.py
Traceback (most recent call last):
File "D:\Python\pycharm\PyCharm 2018.1.3\helpers\pydev\pydev_run_in_console.py", line 52, in run_file
pydev_imports.execfile(file, globals, locals) # execute the script
File "D:\Python\pycharm\PyCharm 2018.1.3\helpers\pydev_pydev_imps_pydev_execfile.py", line 18, in execfile
exec(compile(contents+"\n", file, 'exec'), glob, loc)
File "D:/untitled/MNIST.py", line 3, in
from tensorflow.examples.tutorials.mnist import input_data
File "D:\Python\pycharm\PyCharm 2018.1.3\helpers\pydev_pydev_bundle\pydev_import_hook.py", line 19, in do_import
module = self._system_import(name, *args, **kwargs)
ModuleNotFoundError: No module named 'tensorflow'
import sys; print('Python %s on %s' % (sys.version, sys.platform))
sys.path.extend(['D:\untitled', 'D:/untitled'])
Python 3.7.1 (default, Dec 10 2018, 22:54:23) [MSC v.1915 64 bit (AMD64)]
Type 'copyright', 'credits' or 'license' for more information
IPython 7.2.0 -- An enhanced Interactive Python. Type '?' for help.
PyDev console: using IPython 7.2.0
Python 3.7.1 (default, Dec 10 2018, 22:54:23) [MSC v.1915 64 bit (AMD64)] on win32

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 邀请回答

1条回答 默认 最新

  • caozhy

    ModuleNotFoundError: No module named 'tensorflow'
    说明你tensorflow没有安装对,用pip install安装下。

    点赞 评论

相关推荐