首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Theano导入错误

Theano导入错误
EN

Stack Overflow用户
提问于 2015-06-29 12:26:23
回答 3查看 10.5K关注 0票数 8

我正在尝试在CPU机器上安装Theano (运行英特尔高清显卡,没有NVIDIA)。在python中测试时,我得到了以下导入错误。

代码语言:javascript
复制
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++。

谢谢。

EN

回答 3

Stack Overflow用户

发布于 2015-06-29 14:58:36

As described in the documentation,在使用Anaconda时,请确保您已经这样做了。

代码语言:javascript
复制
conda install mingw libpython
票数 18
EN

Stack Overflow用户

发布于 2017-01-19 09:08:23

如果在windows上使用Pycharm,请执行以下步骤:

  • install anaconda
  • Change your interpreter to anaconda python
  • install theano
  • install mingw
  • install libpython
票数 1
EN

Stack Overflow用户

发布于 2017-01-27 20:53:36

试试这个:

代码语言:javascript
复制
pip install --upgrade --no-deps git+git://github.com/Theano/Theano.git

十,

代码语言:javascript
复制
from theano import *

这对我来说很有效

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/31107776

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档