Trouble with installing TDM-GCC/OpenBLAS for Theano on Windows 10 - DLL load failed -


without using c++ compiler setup (see below) works (but slow of course). speed runtime tried install tdm-gcc. import error "dll load failed" shown. after spending hours read installation guides, downloading openblas, experiment, read question/comments "dll load failed" - came no step forward. can me?

installed software:

  • windows 10 home

  • python 3.6.1 (v3.6.1:69c0db5, mar 21 2017, 18:41:36) [msc v.1900 64 bit (amd64)] on win32

  • numpy (1.13.0rc2+mkl) (installed wheel)

  • scipy (0.19.0) (installed wheel)
  • scikit-learn (0.18.1) (installed wheel)
  • theano (0.9.0)
  • keras (2.0.6)

  • gcc version 5.1.0 (tdm64-1)

  • openblas-v0.2.19-win64-int32

i added following entries path:

c:\python36\ c:\tdm-gcc-64\bin\ c:\tdm-gcc-64\x86_64-w64-mingw32\bin\ c:\tdm-gcc-64\x86_64-w64-mingw32\lib\ c:\tdm-gcc-64\lib\gcc\x86_64-w64-mingw32\5.1.0\ c:\tdm-gcc-64\libexec\gcc\x86_64-w64-mingw32\5.1.0\ c:\openblas-v0.2.19-win64-int32\bin\ c:\openblas-v0.2.19-win64-int32\lib\ 

my theaonrc.txt looks this:

[global] floatx = float32 device = cpu cxx=c:\\tdm-gcc-64\\bin\\g++.exe  [blas] ldflags = -lc:\\openblas-v0.2.19-win64-int32\\bin -lc:\\openblas-v0.2.19-  win64-int32\\lib -lopenblas 

error log:

using theano backend. warning (theano.gof.compilelock): overriding existing lock dead process '1004' (i process '6472') traceback (most recent call last):   file "c:/christian/python/dl.py", line 15, in <module> model.add(dense(12, input_dim=8, activation='relu'))   file "c:\python36\lib\site-packages\keras\models.py", line 436, in add layer(x)   file "c:\python36\lib\site-packages\keras\engine\topology.py", line 569, in __call__ self.build(input_shapes[0])   file "c:\python36\lib\site-packages\keras\layers\core.py", line 825, in build constraint=self.kernel_constraint)   file "c:\python36\lib\site-packages\keras\legacy\interfaces.py", line 87, in wrapper return func(*args, **kwargs)   file "c:\python36\lib\site-packages\keras\engine\topology.py", line 391, in add_weight weight = k.variable(initializer(shape), dtype=dtype, name=name)   file "c:\python36\lib\site-packages\keras\initializers.py", line 208, in __call__ dtype=dtype, seed=self.seed)   file "c:\python36\lib\site-packages\keras\backend\theano_backend.py", line 2191, in random_uniform return rng.uniform(shape, low=minval, high=maxval, dtype=dtype)   file "c:\python36\lib\site-packages\theano\sandbox\rng_mrg.py", line 1354, in uniform rstates = self.get_substream_rstates(nstreams, dtype)   file "c:\python36\lib\site-packages\theano\configparser.py", line 117, in res return f(*args, **kwargs)   file "c:\python36\lib\site-packages\theano\sandbox\rng_mrg.py", line 1256, in get_substream_rstates multmatvect(rval[0], a1p72, m1, a2p72, m2)   file "c:\python36\lib\site-packages\theano\sandbox\rng_mrg.py", line 66, in multmatvect [a_sym, s_sym, m_sym, a2_sym, s2_sym, m2_sym], o, profile=false)   file "c:\python36\lib\site-packages\theano\compile\function.py", line 326, in function output_keys=output_keys)   file "c:\python36\lib\site-packages\theano\compile\pfunc.py", line 486, in pfunc output_keys=output_keys)   file "c:\python36\lib\site-packages\theano\compile\function_module.py", line 1795, in orig_function defaults)   file "c:\python36\lib\site-packages\theano\compile\function_module.py", line 1661, in create input_storage=input_storage_lists, storage_map=storage_map)   file "c:\python36\lib\site-packages\theano\gof\link.py", line 699, in make_thunk storage_map=storage_map)[:3]   file "c:\python36\lib\site-packages\theano\gof\vm.py", line 1047, in make_all impl=impl))   file "c:\python36\lib\site-packages\theano\gof\op.py", line 935, in make_thunk no_recycling)   file "c:\python36\lib\site-packages\theano\gof\op.py", line 839, in make_c_thunk output_storage=node_output_storage)   file "c:\python36\lib\site-packages\theano\gof\cc.py", line 1190, in make_thunk keep_lock=keep_lock)   file "c:\python36\lib\site-packages\theano\gof\cc.py", line 1131, in __compile__ keep_lock=keep_lock)   file "c:\python36\lib\site-packages\theano\gof\cc.py", line 1586, in cthunk_factory key=key, lnk=self, keep_lock=keep_lock)   file "c:\python36\lib\site-packages\theano\gof\cmodule.py", line 1159, in module_from_key module = lnk.compile_cmodule(location)   file "c:\python36\lib\site-packages\theano\gof\cc.py", line 1489, in compile_cmodule preargs=preargs)   file "c:\python36\lib\site-packages\theano\gof\cmodule.py", line 2325, in compile_str return dlimport(lib_filename)   file "c:\python36\lib\site-packages\theano\gof\cmodule.py", line 302, in dlimport rval = __import__(module_name, {}, {}, [module_name]) importerror: dll load failed: eine dll-initialisierungsroutine ist fehlgeschlagen. 

i gave up, uninstalled setup , installed anaconda – works :-)

for installing anaconda used guide https://machinelearningmastery.com/setup-python-environment-machine-learning-deep-learning-anaconda/


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -