其他分享
首页 > 其他分享> > 运行theano时出错:平台的LONG_BIT定义似乎错误(错误的gcc / glibc配置?)

运行theano时出错:平台的LONG_BIT定义似乎错误(错误的gcc / glibc配置?)

作者:互联网

我按照https://www.kaggle.com/c/otto-group-product-classification-challenge/forums/t/13973/a-few-tips-to-install-theano-on-windows-64-bits/87880(使用OpenBLAS)上的说明在64位Windows 7上使用Python 3.4安装Theano.

Theano安装似乎没有错误,但是当我尝试运行测试程序(或只是在python中“导入theano”)时,出现一个错误,其核心似乎是:

In file included from C:\SciSoft\Anaconda3\include/Python.h:50:0,
             from C:\Users\Owner\AppData\Local\Theano\compiledir_Windows-7-6.1.7601-SP1-Intel64_Family_6_Model_37_Stepping_5_GenuineIntel-3.4.3-64\lazylinker_ext\mod.cpp:1:
C:\SciSoft\Anaconda3\include/pyport.h:814:2: error: #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."
 #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."

如何正确“配置” gcc / glibc?

我查看了有关此错误的其他几个问题,但尚未找到解决方案.

> A trivial Python SWIG error question
> MinGW compiler for pip after “cannot find vcvarsall.bat” error, still does not work

解决方法:

此错误消息强烈表明将Theano与Cygwin一起使用.解决方案是改用MinGW.如果两者都安装了,那么请确保MinGW在PATH环境变量中出现在Cygwin之前.

标签:gcc,theano,python
来源: https://codeday.me/bug/20191028/1948639.html