python - Trouble installing Theano (64 bit DLL error) -
i'm working on windows 7 64 bit laptop nvidia graphic card. wanted use lasagne uses theano. never have thought complicated :/
after failing miserable on own, tried follow tutorial: http://deeplearning.net/software/theano/install_windows.html - uses python2.7 wanted use newer 3.5 version (and don't think problem). did , @ end able call:
>where gcc c:\tdm-gcc-64\bin\gcc.exe >where gendef c:\tdm-gcc-64\x86_64-w64-mingw32\bin\gendef.exe >where cl c:\users\user\appdata\local\programs\common\microsoft\visual c++ python\9.0\vc\bin\amd64\cl.exe >where nvcc c:\program files\nvidia gpu computing toolkit\cuda\v5.5\bin\nvcc.exe >where python c:\winpython-64bit-3.5.1.1\python-3.5.1.amd64\python.exe c:\users\user\appdata\local\programs\python\python35-32\python.exe
i think looks promising, checked , python.exe 64 bit version (i did size() check other thread). next downloaded theano , supposed call "python setup.py develop" said "unknown option develop" used "build" , "install" instead. tried run example when type "import theano" following error:
>>> import theano traceback (most recent call last): file "<stdin>", line 1, in <module> [...] theano.gof.cmodule import gcc_compiler file "c:\users\user\downloads\theano-master\theano-master\theano\gof\cmodule.py", line 34, in <module> theano.gof import compilelock file "c:\users\user\downloads\theano-master\theano-master\theano\gof\compilelock.py", line 6, in <module> import socket # used gethostname() file "c:\users\user\appdata\local\programs\python\python35-32\lib\socket.py", line 49, in <module> import _socket importerror: dll load failed: %1 not valid win32 application.
so seems 64bit - 32bit dll problem. guys have advice? thank much!
so yes kichik right. somehow put 35-32 folder in path when installing python. assumed 64 bit because used winpython 64 bit version. if @ output of "where python" can see both files in path. caused problem. changing path fixed problem.
thank much!
Comments
Post a Comment