运行 theano 时的编译问题 [英] compilation issue when running theano
问题描述
我在 64 位 Windows 8 上安装了 theano.我正在使用 anaconda 实现,python 3.4.尝试安装 theano,我认真地按照此链接上的所有步骤进行操作(这在另一台具有类似配置的计算机上有所帮助):
I installed theano on windows 8, 64 bit. I am using anaconda implementation, python 3.4. Trying to install theano, I diligently followed all steps on this link (which helped on another computer with similar configuration):
http://rosinality.ncity.net/doku.php?id=python:installing_theano(英文和韩文)
每当我在 IDE (pycharm) 上输入import theano"时,我都会收到一条很长的错误消息,但我认为最有意义的部分是:
whenever I type 'import theano' on my IDE (pycharm) I get a long error message, but I believe the most meaningful portion is:
import theano
>>>>Exception: Compilation failed (return status=1):
C:UsersxxxAppDataLocalTheanocompiledir_Windows-8-6.2.9200-
Intel64_Family_6_Model_69_Stepping_1_GenuineIntel-3.4.3-
64lazylinker_extmod.cpp:1: sorry, unimplemented: 64-bit mode not compiled in
真诚地感谢一些意见顺便说一句,我安装了 mignw64、msys 和所有其他依赖项.
Would sincerely appreciate some input btw, I installed mignw64, msys, and all other dependencies.
推荐答案
我发现了问题.路径环境变量未指向正确的 mingw-w64(在 64 位 Windows 上运行 theano 所需)目录.
I found the problem. the path environment variable was not pointing to the correct mingw-w64 (which is needed to run theano on 64 bit windows) directory.
环境变量应该始终指向mingw-w64目录下的bin子目录,如下:
The environment variable should always point to the bin subdirectory of the mingw-w64 directory, as in:
C:UsersxxxxxAnaconda3mingw-w64mingw64in
同样,以下帖子对于在 64 位 Windows 上安装 theano 非常有用(英文和韩文):
Again, the following post is VERY USEFUL to install theano on 64-bit windows (in English and Korean):
http://rosinality.ncity.net/doku.php?id=蟒蛇:安装_theano
这篇关于运行 theano 时的编译问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!