Reputation: 959
I followed the directions on https://www.kaggle.com/c/otto-group-product-classification-challenge/forums/t/13973/a-few-tips-to-install-theano-on-windows-64-bits/87880 (with OpenBLAS) to install Theano with Python 3.4, on 64-bit Windows 7.
Theano seemed to install without error, but when I try to run a test program (or just "import theano" in python) I get an error the core of which seems to be:
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?)."
How do I "configure" gcc/glibc correctly?
I looked at several other questions on this error but haven't found a solution.
Upvotes: 3
Views: 4284
Reputation: 346
Check if gcc is installed first.If not make sure you install it.
If gcc already exists abd still facing the issue, make sure you are using the right bits for Theano and Python, like 64-bit in your case. In my case I installed 32-bit anaconda python on 64-bit OS which caused the issue. re-installing the right version fixed it.
Upvotes: 0
Reputation: 34177
This error message is strongly indicative of using Theano with Cygwin. The solution is to use MinGW instead. If you have both installed then make sure MinGW appears before Cygwin in the PATH
environment variable.
Upvotes: 4