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

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

报错信息:
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条回答 默认 最新

  • threenewbee 2019-05-26 23:47
    关注

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

    评论

报告相同问题?

悬赏问题

  • ¥15 微信小程序协议怎么写
  • ¥15 c语言怎么用printf(“\b \b”)与getch()实现黑框里写入与删除?
  • ¥20 怎么用dlib库的算法识别小麦病虫害
  • ¥15 华为ensp模拟器中S5700交换机在配置过程中老是反复重启
  • ¥15 java写代码遇到问题,求帮助
  • ¥15 uniapp uview http 如何实现统一的请求异常信息提示?
  • ¥15 有了解d3和topogram.js库的吗?有偿请教
  • ¥100 任意维数的K均值聚类
  • ¥15 stamps做sbas-insar,时序沉降图怎么画
  • ¥15 买了个传感器,根据商家发的代码和步骤使用但是代码报错了不会改,有没有人可以看看