请注意,我正在使用连接到较大网络的办公系统,并且以下提及的某些路径在所有用户之间共享。
摘要::我正在尝试运行python代码。当我运行它时,它返回一个ImportError: No module named scipy
错误,而当我尝试安装它时,它返回并显示错误消息,提示它已经安装了此消息:Requirement already satisfied
详细信息: 我正在尝试使用Makefile运行python代码,该文件的标题中包含以下行:
python=PYTHONPATH=. pypy3
这些是在我的系统上运行的结果:
[amir@lin physlr]$ which python3
/gsc/btl/linuxbrew/bin/python3
[amir@lin physlr]$ which pypy3
/gsc/btl/linuxbrew/bin/pypy3
所有这些都来自linuxbrew。现在,当我使用Makefile运行代码时,它说:
ImportError: No module named 'scipy'
make: *** [Makefile:317: f1chr4.physlr.tsv] Error 1
make: *** Deleting file 'f1chr4.physlr.tsv'
所以我尝试使用pip3安装scipy,结果如下:
[amir@lin physlr]$ pip3 install --user scipy
Requirement already satisfied: scipy in /home/aafshinfard/.local/lib/python3.7/site-packages (1.1.0)
Requirement already satisfied: numpy>=1.8.2 in /home/aafshinfard/.local/lib/python3.7/site-packages (from scipy) (1.15.4)
是的,当我尝试pip3 show scipt时说:
[amir@lin physlr]$ pip3 show scipy
Name: scipy
Version: 1.1.0
Summary: SciPy: Scientific Library for Python
Home-page: https://www.scipy.org
Author: None
Author-email: None
License: BSD
Location: /home/amir/.local/lib/python3.7/site-packages
Requires: numpy
Required-by: scikit-learn
不同于/gsc/btl/linuxbrew/
...
似乎我需要在尝试安装pip_pypy3
时安装软件包
pip_pypy3 show scipy
不返回任何内容,表示未安装。但是为此,我需要一些我现在无法获得的许可。
有人有建议或解决方案吗?