运行theano时的编译问题 [英] compilation issue when running theano

查看:458
本文介绍了运行theano时的编译问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Windows 8、64位上安装了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:\Users\xxx\AppData\Local\Theano\compiledir_Windows-8-6.2.9200-    

Intel64_Family_6_Model_69_Stepping_1_GenuineIntel-3.4.3-

64\lazylinker_ext\mod.cpp:1: sorry, unimplemented: 64-bit mode not compiled in

中编译衷心感谢您输入的
btw,我安装了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:\Users\xxxxx\Anaconda3\mingw-w64\mingw64\bin

同样,以下帖子非常有用,可以在64上安装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=python:installing_theano

这篇关于运行theano时的编译问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆