在EPD上安装Theano(Windows x64)

Ove*_*Ove 2 python windows enthought theano

我正在尝试在Enthought Python Distribution(EPD)上安装Theano,但我得到了一个奇怪的错误.这是我的安装的样子:

  • 我已经安装了EPD C:\Python27.
  • 在那之后,我已经安装pip了使用easy_install pip
  • 我使用安装了Theano pip install Theano
  • 为了测试,我开始ipython并输入import theano.我收到以下错误:

    Problem occurred during compilation with the command line below:
    g++ -shared -g -IC:\Python27\lib\site-packages\numpy\core\include -IC:\Python27\include -o C:\Users\Ove\AppData\Local\Theano\compiledir_Windows-7-6.1.7601-SP1-Intel64_Family_6_Model_37_Stepping_5_GenuineIntel-2.7.2\lazylinker_ext\lazylinker_ext.pyd C:\Users\Ove\AppData\Local\Theano\compiledir_Windows-7-6.1.7601-SP1-Intel64_Family_6_Model_37_Stepping_5_GenuineIntel-2.7.2\lazylinker_ext\mod.cpp -LC:\Python27\libs -LC:\Python27 -lpython27
    C:\Users\Ove\AppData\Local\Temp\ccIoNPlU.o: In function `initlazylinker_ext':C:/Users/Ove/AppData/Local/Theano/compiledir_Windows-7-6.1.7601-SP1-Intel64_Family_6_Model_37_Stepping_5_GenuineIntel-2.7.2/lazylinker_ext/mod.cpp:911: undefined reference to `__imp_Py_InitModule4'
    collect2: ld returned 1 exit status
    
    Exception: Compilation failed (return status=1): C:\Users\Ove\AppData\Local\Temp. C:/Users/Ove/AppData/Local/Theano/compiledir_Windows-7-6.1.7601-SP1-Intel64_Family_6_Model_37_Stepping_5_GenuineIntel-2.7.2/lazylinker_ext/mod.cpp:911: undefi. collect2: ld returned 1 exit status4'
    
    Run Code Online (Sandbox Code Playgroud)

有谁知道如何让Theano与EPD合作?

nou*_*uiz 7

Theano(0.5)的最后一个版本在Windows上存在一些问题.您需要安装最新版本.您可以像这样更新您的版本:

pip install --upgrade --no-deps git+git://github.com/Theano/Theano.git
Run Code Online (Sandbox Code Playgroud)

这应该可以解决问题.如果没有,您可能与gcc的不同安装有一些冲突.你用cygwin或mingw安装了吗?EPD安装了自己的mingw版本.