Installing Theano on Windows - DLL load failed

后端 未结 5 1632
栀梦
栀梦 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:05

    Just to add my experience with Win10 64bit and theano (and keras). I was getting the DLL load fail error as well. Tried all the stuff I have found on theano win install webpage and in the different forum and blog posts (mentioned here in Uradium's post).

    It didn't work for me, but here is what worked:

    1. I installed TDM-GCC-64 and openblas, using regedit I have added their /bin directories to PATH (and /lib directory of openblas as well)

    2. made clean venv under miniconda3 - installed prerequisites for theano and keras (scipy, numpy, pyyaml), python 3.5.2

    3. conda install mingw libpython

    4. conda install theano (installs all the mingw libraries as well)

    5. at this point - it worked - so I didnt use any .theanorc.txt file configuration, no fiddling with Windows environment variables. It even worked for keras based python scripts, even-though I had not installed keras into my conda venv it was working in...(I have keras installed in my "normal" non-conda python3, and later I pip installed keras under my conda venv as well).

提交回复
热议问题