【发布时间】:2022-01-22 07:32:38
【问题描述】:
在安装软件时,我多次发现以下错误。
$ sudo python setup.py install
Traceback (most recent call last):
File "setup.py", line 24, in <module>
from software_name import PACKAGE_NAME
File "/home/username/Softwares/software_name/__init__.py", line 29, in <module>
import scipy
ImportError: No module named scipy
我可以安装许多缺少的模块,例如 sudo apt-get install -y python-numpy,但有时我会得到:
username@username:~/Softwares/software_name$ sudo apt-get install -y python-scipy
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package python-scipy is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'python-scipy' has no installation candidate
我真的不确定发生了什么?
【问题讨论】:
标签: installation pip package setup.py