Help Import Scipy

Help Import Scipy

I need help with scipy of Python 2.7 please

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:~$ 
4

1 Answer

Do you have "Universe" enabled? See here:

In my Ubuntu 14.04 is all ok installing 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  trusty/universe amd64 Packages
        100 /var/lib/dpkg/status

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Sarah Jenkins
Author

Sarah Jenkins

Sarah Jenkins is a veteran tech journalist with over 12 years of experience covering artificial intelligence, mobile innovations, and digital ethics. Her insights have appeared in leading technology publications worldwide.