Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/321.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
运行theano:/usr/bin/ld:not find-latlas的Python代码_Python_Numpy_Atlas_Theano - Fatal编程技术网

运行theano:/usr/bin/ld:not find-latlas的Python代码

运行theano:/usr/bin/ld:not find-latlas的Python代码,python,numpy,atlas,theano,Python,Numpy,Atlas,Theano,我试图在ubuntu上运行theano,它需要libatlas 我已经安装了libatlas,但我可以在/usr/lib/atlas base 我还将所有文件复制到一个名为/atlas的新文件夹中: cp -a /usr/lib/atlas-base/* /usr/lib/atlas 但是,当我运行python代码时,我仍然看到: /usr/bin/ld: cannot find -latlas /usr/bin/ld: cannot find -l477blas /usr/bin/ld: c

我试图在ubuntu上运行theano,它需要
libatlas

我已经安装了libatlas,但我可以在
/usr/lib/atlas base

我还将所有文件复制到一个名为
/atlas
的新文件夹中:

cp -a /usr/lib/atlas-base/* /usr/lib/atlas
但是,当我运行python代码时,我仍然看到:

/usr/bin/ld: cannot find -latlas
/usr/bin/ld: cannot find -l477blas
/usr/bin/ld: cannot find -lcblas
我还尝试添加环境变量,但没有成功:

set LIBPATH = [BUILD_LIB_DIR, /usr/lib/atlas]
我还尝试将路径添加到ld文件:

/usr/lib/atlas


它们都不起作用,我仍然看到运行Python代码时出现的错误。

要更改指向BLAS的ANO链接的方式,需要使用ANO标志[1]。可以使用环境变量THEANO_FLAGS或配置文件来设置它们

你是怎么让西亚诺用阿特拉斯的?如果您只是安装了atlas软件包,它将无法工作。您需要按照针对Ubuntu的Theano安装说明安装libatlas dev pacake[2]

最后一点,我们不推荐atlas,尤其是Ubuntu。OpenBLAS是为取消绑定而打包的,速度更快。有关如何安装它们的详细信息,请参见[2]。在安装openblas之前,您需要删除atlas,否则会产生冲突

[1]
[2]

我认为这不会解决您的问题,但是
ld
使用的变量是
ld\u LIBRARY\u PATH
。或者你是在Windows上?我想它是在anaconda中寻找blas:python-c'import theano;打印ano.config“| grep blas Result:blas.ldflags()Doc:lib[s]以包含[Fortran]三级blas实现值:-L/home/#USER#/anaconda/lib-lf77blas-lcblas-latlas如何将其更改为openBlas?
/usr/lib/atlas-base