【问题标题】:installing theano "blas error"安装theano“blas错误”
【发布时间】:2016-02-03 14:07:51
【问题描述】:
>>> 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 添加到环境变量(“路径”)?

【问题讨论】:

  • AFAIK 是的,您需要安装 OpenBLAS .-。官网上有个link for the binaries for windows
  • 安装到底是什么意思?我下载了它,但是我如何识别到python?
  • 让 Theano 在 Windows 上的 Anaconda 中运行可能更简单。您甚至可以使用他们的 MKL 扩展来获得快速的矩阵运算,但它是一种商业产品(对学生免费)。
  • 感谢@DanielRenshaw 的帮助,它与 anaconda 合作。
  • 但它给出了另一个警告WARNING (theano.configdefaults): g++ not detected ! Theano will be unable to execute optimized C-implementations (for both CPU and GPU) and will default to Python implementations. Performance will be severely degraded. To remove this warning, set Theano flags cxx to an empty string.

标签: python-3.x theano deep-learning openblas


【解决方案1】:

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

numpy+mkl

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


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

MinGW安装教程部分:

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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2018-09-18
    • 1970-01-01
    • 2016-05-12
    • 2017-02-26
    • 1970-01-01
    • 1970-01-01
    • 2016-05-23
    • 1970-01-01
    相关资源
    最近更新 更多