>> import numpy # OK! >>> import scipy # OK! >>> import theano # warning WARNING (theano.tensor.bla-6ren">
gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-03 11:14:51 26 4
gpt4 key购买 nike

>>> 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/

    26 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com