Installing Theano on Windows - DLL load failed

后端 未结 5 1610
栀梦
栀梦 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 22:46

    Quite late, but for future reference. I stumbled upon this thread trying to run an OpenBLAS test script on the CPU. It worked fine on the GPU but the CPU gives me the same errors as the OP. I tried the suggestions here, but that didn't work. Turns out that the line in .theanorc:

    ldflags=-LE:\OpenBLAS-v0.2.14-Win64-int32/bin -lopenblas
    

    shouldn't have the space after bin and before -l. So it should be:

    ldflags=-LE:\OpenBLAS-v0.2.14-Win64-int32/bin-lopenblas
    

    Now everything works. Tried it on:

    Windows 10
    Python 3.5
    Theano 0.9
    Cuda 8 (with CudaMEM and CudaDNN)
    Visual Studio 2015 Community
    

提交回复
热议问题