Помогите импортировать scipy
Мне нужна помощь со скриптом Python 2.7, пожалуйста
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 ответ
Решение
У вас включена "Вселенная"? Смотрите здесь: /questions/43856/kak-vklyuchit-repozitorij-vselennaya/43858#43858
В моем 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