我有一个 Python3.8 的 miniconda 环境。服务器没有在线访问权限,因此我必须安装 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
这里有什么问题?我需要更多的包裹吗?? 谢谢。