Installing Theano on Windows - DLL load failed

后端 未结 5 1635
栀梦
栀梦 2021-01-02 22:39

I am trying to install Theano on Windwos 8

Have followed these steps.

I try to test using:

import numpy as np
import time
import theano

prin         


        
5条回答
  •  耶瑟儿~
    2021-01-02 23:07

    I was struggling with getting theano to work on Windows 10 x64 as well, and after reading several help guides, what worked for me in the end was the following:

    1. Install Intel Distribution for Python (make sure c:\intelpython27\ and c:\intelpython27\scripts are in the PATH)
    2. Open a command line and do: conda install mingw libpython
    3. Then do: pip install theano
    4. Download the precompiled libopenblas.dll from http://sourceforge.net/projects/openblas/files/v0.2.14/ (I got OpenBLAS-v0.2.14-Win64-int32.zip)
    5. Download mingw64_dll.zip as well from http://sourceforge.net/projects/openblas/files/v0.2.14/mingw64_dll.zip/download
    6. extract OpenBLAS-v0.2.14-Win64-int32.zip to c:\openblas, for example
    7. extract mingw64_dll.zip to c:\openblas\bin
    8. Add c:\openblas\lib and c:\openblas\bin to PATH
    9. Create .theanorc.txt in c:\Users\{username}
    10. Put the following in .theanorc.txt:

      [global]
      floatX = float32
      device = cpu
      
      [blas]
      ldflags = -LC:\\openblas\\bin -LC:\\openblas\\lib -lopenblas
      

    Hope this helps someone.

提交回复
热议问题