Theano导入错误 [英] Theano Import error

查看:115
本文介绍了Theano导入错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在CPU机器上安装Theano(运行intel HD图形,而没有NVIDIA).在python中进行测试时,我收到以下导入错误.

I am trying to install Theano on CPU machine (running intel HD graphics, without NVIDIA). I get the following import error while testing in python.

WARNING (theano.configdefaults): g++ not detected ! Theano will be unable to exe
cute optimized C-implementations (for both CPU and GPU) and will default to Pyth
on implementations. Performance will be severely degraded. To remove this warnin
g, set Theano flags cxx to an empty string.
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "c:\anaconda\pkgs\theano\theano\__init__.py", line 74, in <module>
    from theano.printing import pprint, pp
  File "c:\anaconda\pkgs\theano\theano\printing.py", line 19, in <module>
    if pd.find_graphviz():
  File "C:\Anaconda\lib\site-packages\pydot.py", line 409, in find_graphviz
    "SOFTWARE\ATT\Graphviz", 0, win32con.KEY_QUERY_VALUE )
pywintypes.error: (2, 'RegOpenKeyEx', 'The system cannot find the file specified
.')

虽然我已经安装了g ++.

I have the g++ installed though.

谢谢.

推荐答案

如文档中所述,确保您在使用Anaconda时已完成此操作.

As described in the documentation, make sure you have done this when using Anaconda.

conda install mingw libpython

这篇关于Theano导入错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆