python – Scipy安装问题,得到ImportError:libopenblas.so.0:无法打开共享对象文件或目录
作者:互联网
我在Ubuntu 14.04上安装Scipy-0.16.1
安装了OpenBLAS_0.2.18和Numpy-1.11.0但没有任何问题.
已下载Scipy-0.16.1.tar.gz
site.cfg被复制并取消注释以下行:
[openblas]
libraries = openblas
library_dirs = /opt/OpenBLAS/lib
include_dirs = /opt/OpenBLAS/include
在〜/ .bashrc中添加了一行
export LD_LIBRARY_PATH=/opt/OpenBLAS/lib:$LD_LIBRARY_PATH
source~ / .bashrc
LDCONFIG
sudo python setup.py配置
错误
ImportError: libopenblas.so.0: cannot open shared object file: No such
file or directory
解决方法:
您必须安装OpenBlas系统库.尝试:
sudo apt-get install libopenblas-dev
标签:python,numpy,scipy,openblas 来源: https://codeday.me/bug/20190724/1525295.html