2015-06-29 31 views
8

我試圖在CPU機器上安裝Theano(運行英特爾高清顯卡,沒有NVIDIA)。我在python中測試時遇到以下導入錯誤。Theano導入錯誤

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 ++。

謝謝。

回答

18

As described in the documentation,請確保您在使用Anaconda時完成了此操作。

conda install mingw libpython 
+0

由於這真是幫了我的乾淨安裝克++ –

1

如果使用Pycharm在Windows上,遵循以下步驟:

  • 安裝蟒蛇
  • 改變你的解釋,以水蟒蟒
  • 安裝theano
  • 安裝MinGW的
  • 安裝libpython
0

試試這個:

pip install --upgrade --no-deps git+git://github.com/Theano/Theano.git 

十個,

from theano import * 

這是爲我工作