安装theano"blas error"

bab*_*eyh 6 python-3.x theano deep-learning openblas

>>> import numpy # OK!
>>> import scipy # OK!
>>> import theano # warning
WARNING (theano.tensor.blas): Failed to import scipy.linalg.blas, and Theano
flag blas.ldflags is empty. Falling back on slower implementations for
dot(matrix, vector), dot(vector, matrix) and dot(vector, vector) (DLL load
failed: Belirtilen modül bulunamad?.)
>>> 
Run Code Online (Sandbox Code Playgroud)

导入theano时,python会发出此警告.我按照这个链接设置了theano.http://deeplearning.net/software/theano/install_windows.html

Numpy和Scipy进口都可以.但是我坚持使用BLAS.

我从github克隆到我的电脑OpenBLAS.我如何将blas添加到环境变量("path")?

小智 1

显然你有来自 scipy.linalg.blas 的错误,尝试从\n安装软件包,要安装 scipy 请确保你已经安装

\n\n
\n

numpy+mkl

\n
\n\n

您可以在http://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy上找到它

\n\n
\n\n

您提到的另一个问题是未检测到 g++ 编译器,theano 需要 g++(Linux 和 Windows)才能编译生成的 C 代码。\n(只需 google 一下深度学习 theano 设置可能会有所帮助)。

\n\n

安装MinGW的教程部分:

\n\n
    \n
  1. 在C:\\创建文件夹\xe2\x80\x99s,名称命名为Program
  2. \n
  3. 在这个文件夹\xe2\x80\x9dProgram\xe2\x80\x9d下安装MinGW
  4. \n
  5. 在包含 bin 文件夹的路径下安装 msys。
  6. \n
  7. 在 mysy 中运行sh /postinstall/pi.sh,您刚刚安装 MinGW 的方向应该是C:/Program/mingw-w64/mingw64(取决于安装方向)
  8. \n
  9. 按照http://rosinality.ncity.net/doku.php?id=python:installing_theano上的步骤操作,您的代码可能会起作用!
  10. \n
\n