Python 在Windows中导入Theano时出错

Python 在Windows中导入Theano时出错,python,theano,Python,Theano,当我尝试导入theano时,我一直会遇到下面的错误。我已经安装了mingw,libpython。我甚至尝试安装TDM-GCC并将其添加到path中 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

当我尝试导入theano时,我一直会遇到下面的错误。我已经安装了mingw,libpython。我甚至尝试安装TDM-GCC并将其添加到path中

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

看起来该命令正在拆分我的用户名,这是导致问题的原因,但我不知道如何修复该问题

检查这一点,我只能通过执行pip安装keras theano来修复上述问题,而不是通过从Github提取代码来使用最新版本。Kaggle链接对我后来遇到的其他错误很有帮助。