Conda环境:libcblas.so.3:无法打开共享对象文件:没有这样的文件或目录

2024-04-26 19:03:15 发布

您现在位置:Python中文网/ 问答频道 /正文

我有一个小型Python3.8环境。服务器没有在线访问权限,所以我不得不安装numpy,从网上下载软件包。当我尝试运行使用numpy的脚本时,我收到以下错误:

ImportError:

IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE!

Importing the numpy C-extensions failed. This error can happen for
many reasons, often due to issues with your setup or how NumPy was
installed.

We have compiled some common reasons and troubleshooting tips at:

    https://numpy.org/devdocs/user/troubleshooting-importerror.html

Please note and check the following:

  * The Python version is: Python3.8 from "/srv_apl/miniconda3/envs/introscope/bin/python3"
  * The NumPy version is: "1.18.4"

and make sure that they are the versions you expect.
Please carefully study the documentation linked above for further help.

Original error was: libcblas.so.3: cannot open shared object file: No such file or directory

但是,我可以看到libcblas.so.3可用于该virtualenv:

(introscope) [xxxxxxxx@xxxxxxxxx ~]$ locate libcblas.so.3
/srv_apl/miniconda3/envs/introscope/lib/libcblas.so.3
/srv_apl/miniconda3/pkgs/libcblas-3.8.0-14_openblas/lib/libcblas.so.3
/srv_apl/miniconda3/pkgs/libcblas-3.8.0-16_openblas/lib/libcblas.so.3

这里怎么了?我需要更多的包裹吗?? 谢谢


Tags: orandthenumpyforliberrorthis