python-3.x - 安装 theano "blas error"

标签 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ı.)
>>> 

导入 theano 时,python 给出了这个警告。
我根据此链接设置 theano。 http://deeplearning.net/software/theano/install_windows.html

Numpy 和 Scipy 导入没问题。但我被 BLAS 困住了。?

我从 github 克隆到我的计算机 OpenBLAS。
我如何将 blas 添加到环境变量(“路径”)?

最佳答案

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

numpy+mkl



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

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

安装MinGW的教程部分:
  • 在 C:\中创建名为 Program
  • 的文件夹名称
  • 在这个文件夹“Program”下安装MinGW
  • 在包含 bin 文件夹的路径下安装 msys。
  • 运行 sh /postinstall/pi.sh在 mysy 中,您刚刚安装 MinGW 的方向应该是 C:/Program/mingw-w64/mingw64 (取决于安装方向)
  • 按照 http://rosinality.ncity.net/doku.php?id=python:installing_theano 上的步骤操作你可能有你的代码工作!
  • 关于python-3.x - 安装 theano "blas error",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33498836/

    相关文章:

    python-3.x - python-gitlab api SSL 握手错误 : Error([ ('SSL routines' , 'ssl3_get_server_certificate' , 'certificate verify failed' )],

    python - 在 Keras 中多次调用 "fit_generator()"

    python - keras.backend.function() with updates=None 不会更新有状态模型的状态吗?

    python-3.x - 我在哪里可以找到 ./configure 来运行 python 3.2 中的命令 ./configure –with-zlib=/usr/include

    python-3.x - Elasticsearch 嗅探失败

    python - 使用 beautifulsoup 抓取时如何在 html 日期选择器中输入日期范围?

    python - 使用 python pydot 时出错

    python - Theano/numpy 高级索引

    python - 如何更改 Keras 中 softmax 输出的温度

    python - 深度学习库 Neon DataIterator/ArrayIterator 初始化错误