在Windows中导入Theano时出错

时间:2016-12-27 09:56:53

标签: python theano

当我尝试导入theano时,我一直收到以下错误。我有mingw,安装了libpython。我甚至尝试安装TDM-GCC并将其添加到路径中。

Problem occurred during compilation with the command line below:
"C:\TDM-GCC-64\bin\g++.exe" -shared -g -DNPY_NO_DEPRECATED_API=NPY_1_7_API_VERSI
ON -m64 -DMS_WIN64 -I"C:\Users\Ganesh Anand\Anaconda2\lib\site-packages\numpy\co
re\include" -I"C:\Users\Ganesh Anand\Anaconda2\include" -I"C:\Users\Ganesh Anand
\Anaconda2\lib\site-packages\theano-0.9.0.dev4-py2.7.egg\theano\gof" -L"C:\Users
\Ganesh Anand\Anaconda2\libs" -L"C:\Users\Ganesh Anand\Anaconda2" -o C:\Users\Ga
nesh Anand\AppData\Local\Theano\compiledir_Windows-8.1-6.3.9600-Intel64_Family_6
_Model_69_Stepping_1_GenuineIntel-2.7.13-64\lazylinker_ext\lazylinker_ext.pyd C:
\Users\Ganesh Anand\AppData\Local\Theano\compiledir_Windows-8.1-6.3.9600-Intel64
_Family_6_Model_69_Stepping_1_GenuineIntel-2.7.13-64\lazylinker_ext\mod.cpp -lpy
thon27
g++.exe: error: Anand\AppData\Local\Theano\compiledir_Windows-8.1-6.3.9600-Intel
64_Family_6_Model_69_Stepping_1_GenuineIntel-2.7.13-64\lazylinker_ext\lazylinker
_ext.pyd: No such file or directory
g++.exe: error: C:\Users\Ganesh: No such file or directory
g++.exe: error: Anand\AppData\Local\Theano\compiledir_Windows-8.1-6.3.9600-Intel
64_Family_6_Model_69_Stepping_1_GenuineIntel-2.7.13-64\lazylinker_ext\mod.cpp: N
o such file or directory

看起来该命令正在拆分我的用户名,这导致了问题,但我不知道如何解决这个问题。

0 个答案:

没有答案