如何在基于 debian 的发行版中切换 BLAS 的版本以与 R 一起使用? 系统

问题描述

我正在尝试根据 to this wiki from wiki.debian.orgthis tutorial from Carlos Santillan 切换 BLAS 的实现。

我已经通过

安装了libopenblas
$ sudo apt install libopenblas-base libopenblas-dev 

安装顺利,但在下一步中找不到 openblas 选项:

$ sudo update-alternatives --config libblas.so.3-x86_64-linux-gnu

There are 3 choices for the alternative libblas.so.3-x86_64-linux-gnu (providing /usr/lib/x86_64-linux-gnu/libblas.so.3).

  Selection    Path                                                     Priority   Status
------------------------------------------------------------
* 0            /usr/lib/x86_64-linux-gnu/openblas-pthread/libblas.so.3   100       auto mode
  1            /usr/lib/x86_64-linux-gnu/atlas/libblas.so.3              35        manual mode
  2            /usr/lib/x86_64-linux-gnu/blas/libblas.so.3               10        manual mode
  3            /usr/lib/x86_64-linux-gnu/openblas-pthread/libblas.so.3   100       manual mode

Press <enter> to keep the current choice[*],or type selection number: 

我尝试过通常的重启、更新(通过 apt 更新/升级),但什么也没做。我在这里遗漏了一些明显的东西吗?

系统

  • 操作系统:Pop!_OS 20.04 LTS x86_64
  • 内核:5.8.0-7642-generic
  • R 版本:4.0.4 (2021-02-15) -- “丢失的图书馆书籍”

/usr/lib/x86_64-linux-gnu/openblas-pthread/ 的内容

$ ls -halt /usr/lib/x86_64-linux-gnu/openblas-pthread/
total 146M
drwxr-xr-x 108 root root 116K Mar 19 22:23 ..
drwxr-xr-x   4 root root 4.0K Mar 19 22:15 .
drwxr-xr-x   2 root root 4.0K Mar 19 22:15 pkgconfig
drwxr-xr-x   3 root root 4.0K Mar 19 22:15 cmake
lrwxrwxrwx   1 root root   13 Jun  2  2020 libblas.a -> libopenblas.a
lrwxrwxrwx   1 root root   12 Jun  2  2020 libblas.so -> libblas.so.3
-rw-r--r--   1 root root  26M Jun  2  2020 libblas.so.3
lrwxrwxrwx   1 root root   13 Jun  2  2020 liblapack.a -> libopenblas.a
lrwxrwxrwx   1 root root   14 Jun  2  2020 liblapack.so -> liblapack.so.3
-rw-r--r--   1 root root  33M Jun  2  2020 liblapack.so.3
lrwxrwxrwx   1 root root   21 Jun  2  2020 libopenblas.a -> libopenblasp-r0.3.8.a
-rw-r--r--   1 root root  55M Jun  2  2020 libopenblasp-r0.3.8.a
-rw-r--r--   1 root root  34M Jun  2  2020 libopenblasp-r0.3.8.so
lrwxrwxrwx   1 root root   22 Jun  2  2020 libopenblas.so -> libopenblasp-r0.3.8.so
lrwxrwxrwx   1 root root   22 Jun  2  2020 libopenblas.so.0 -> libopenblasp-r0.3.8.so

感谢您的时间和建议。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...