python - Compilation error when importing Theano on Windows 7 -
i'm trying use theano on windows 7. able install theano , import theano, after seeing warning not having c compiler installed installed mingw. when try "import theano" compilation error. message rather long, relevant parts (from tell) this:
problem occurred during compilation command line below: g++ -shared -g -d npy_array_ensurecopy=npy_ensurecopy -d npy_array_aligned=npy_aligned -d npy_array_writeable=npy_writeable -d npy_array_update_all=npy_update_a ll -d npy_array_c_contiguous=npy_c_contiguous -d npy_array_f_contiguous=npy_f_contiguous -m64 -dms_win64 -ic:\python27\lib\site-packages\numpy\core\include -ic: \python27\include -o c:\users\ameasure\appdata\local\theano\compiledir_windows-7-6.1.7601-sp1-intel64_family_6_model_58_stepping_9_genuineintel-2.7.3-64\lazylin ker_ext\lazylinker_ext.pyd c:\users\ameasure\appdata\local\theano\compiledir_windows-7-6.1.7601-sp1-intel64_family_6_model_58_stepping_9_genuineintel-2.7.3-64\l azylinker_ext\mod.cpp -lc:\python27\libs -lc:\python27 -lpython27 g++: error: createprocess: no such file or directory
and later in error message this:
> exception traceback (most recent call > last) <ipython-input-1-3397704bd624> in <module>() > ----> 1 import theano > > c:\python27\lib\site-packages\theano\__init__.pyc in <module>() > 53 object2, utils > 54 > ---> 55 theano.compile import \ > 56 symbolicinput, in, \ > 57 symbolicoutput, out, \ > > c:\python27\lib\site-packages\theano\compile\__init__.py in <module>() > 3 viewop, view_op, register_view_op_c_code) > 4 > ----> 5 theano.compile.function_module import * > 6 > 7 theano.compile.mode import * > > c:\python27\lib\site-packages\theano\compile\function_module.py in > <module>() > 16 theano import gof > 17 theano.gof.python25 import partial > ---> 18 import theano.compile.mode > 19 theano.compile.io import in, symbolicinput, symbolicinputkit, symbolicoutput > 20 theano.compile.ops import deep_copy_op, view_op > > c:\python27\lib\site-packages\theano\compile\mode.py in <module>() > 9 import theano > 10 theano import gof > ---> 11 import theano.gof.vm > 12 theano.configparser import config, addconfigvar, strparam > 13 theano.compile.ops import register_view_op_c_code, _output_guard > > c:\python27\lib\site-packages\theano\gof\vm.py in <module>() > 509 > 510 try: > --> 511 import lazylinker_c > 512 > 513 class cvm(lazylinker_c.clazylinker, vm): > > c:\python27\lib\site-packages\theano\gof\lazylinker_c.py in <module>() > 87 args = cmodule.gcc_compiler.compile_args() > 88 cmodule.gcc_compiler.compile_str(dirname, code, location=loc, > ---> 89 preargs=args) > 90 # save version __init__.py file. > 91 init_py = os.path.join(loc, '__init__.py') > > c:\python27\lib\site-packages\theano\gof\cmodule.pyc in > compile_str(module_name, src_code, location, include_dirs, lib_dirs, > libs, preargs, py_module) 1830 # difficult read. > 1831 raise exception('compilation failed (return > status=%s): %s' % > -> 1832 (status, compile_stderr.replace(b('\n'), b('. ')))) 1833 elif > config.cmodule.compilation_warning , compile_stderr: 1834 > # print errors below command line. > > . ception: compilation failed (return status=1): g++: error: > createprocess: no such file or directory
any idea i'm doing wrong? files referenced in compile statement don't exist, may part of problem, doesn't explain why theano thinks should there.
installation on windows isn't trivial. simplest way use epd(not free version, miss depenency). academic? if so, free. install theano dependency, need install theano after , link mkl blas.
https://www.enthought.com/products/epd
we had theano installer worked anaconda 1.4, newer released anaconda 1.5 broke it. haven't repaired yet.
Comments
Post a Comment