安装theano“blas错误”
问题描述:
>>> 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安装theano“blas错误”
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:\创建一个名为程序
- 文件夹的名称该文件夹下安装MinGW的“程序”
- 的路径下安装MSYS包括bin文件夹。
- 在mysy运行
sh /postinstall/pi.sh
和方向你刚刚安装的MinGW应该是C:/Program/mingw-w64/mingw64
(取决于安装方向) - 遵循http://rosinality.ncity.net/doku.php?id=python:installing_theano步骤,你可能有你的代码工作!
AFAIK是的,你需要安装OpenBLAS .-。在官方网站上有一个[用于windows的二进制文件的链接](http://sourceforge.net/projects/openblas/files/) – vyscond
什么意思安装?我下载它,但我怎么认识到Python? – babeyh
在Windows上的Anaconda中运行Theano可能会更简单。您甚至可以使用其MKL扩展程序获得快速矩阵操作,但它是商业产品(免费供学生使用)。 –