本文共 345 字,大约阅读时间需要 1 分钟。
一、apt安装
sudo apt-get install libopenblas-dev
二、手动从source安装
1 . 下载OpenBLAS并编译git clone https://github.com/xianyi/OpenBLAS.git cd OpenBLAS make -j8 sudo make PREFIX=/usr/local/OpenBLAS install
三. 添加环境变量
在 /etc/profile 末尾加上 export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/OpenBLAS/lib/
然后 sudo source /etc/profile
注:直接安装在/usr/local 下应该就不需要添加环境变量
转载地址:http://ubwmi.baihongyu.com/