我需要有关 Python 2.7 的 scipy 的帮助
oscar@COM0324:~$ python
Python 2.7.3 (default, Feb 27 2014, 20:00:17)
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import scipy
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named scipy
>>>
>>>
oscar@COM0324:~$ sudo apt-get install python-scipy
[sudo] password for oscar:
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
oscar@COM0324:~$
答案1
您启用了“Universe”吗?请参见此处:https://askubuntu.com/a/148645/16395
在我的 Ubuntu 14.04 中安装一切正常python-scipy
:
[romano:~] % apt-cache policy python-scipy
python-scipy:
Installed: 0.13.3-1build1
Candidate: 0.13.3-1build1
Version table:
*** 0.13.3-1build1 0
500 http://archive.ubuntu.com/ubuntu/ trusty/universe amd64 Packages
100 /var/lib/dpkg/status