Installing SciPy with pip
--
Track title: CC C Schuberts Piano Sonata No 13 D
--
Chapters
00:00 Question
00:34 Accepted answer (Score 107)
01:26 Answer 2 (Score 218)
01:58 Answer 3 (Score 33)
02:21 Answer 4 (Score 23)
03:03 Thank you
--
Full question
https://stackoverflow.com/questions/2213...
Question links:
[NumPy]: http://en.wikipedia.org/wiki/NumPy
[pip]: https://en.wikipedia.org/wiki/Pip_%28pac...
[SciPy]: http://en.wikipedia.org/wiki/SciPy
Accepted answer links:
[listing]: http://pypi.python.org/pypi/scipy/0.7.0
[Python Package Index]: http://pypi.python.org/pypi
[Subversion]: http://en.wikipedia.org/wiki/Apache_Subv...
[Git]: http://en.wikipedia.org/wiki/Git_%28soft...
[Mercurial]: http://en.wikipedia.org/wiki/Mercurial
[Bazaar]: http://en.wikipedia.org/wiki/Bazaar_%28s...
Answer 2 links:
[src]: http://pythonadventures.wordpress.com/20.../
Answer 4 links:
http://www.lfd.uci.edu/~gohlke/pythonlib...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#python #installation #scipy #pip
#avk47
ANSWER 1
Score 220
Prerequisite:
sudo apt-get install build-essential gfortran libatlas-base-dev python-pip python-dev
sudo pip install --upgrade pip
Actual packages:
sudo pip install numpy
sudo pip install scipy
Optional packages:
sudo pip install matplotlib OR sudo apt-get install python-matplotlib
sudo pip install -U scikit-learn
sudo pip install pandas
ACCEPTED ANSWER
Score 107
An attempt to easy_install indicates a problem with their listing in the Python Package Index, which pip searches.
easy_install scipy
Searching for scipy
Reading http://pypi.python.org/simple/scipy/
Reading http://www.scipy.org
Reading http://sourceforge.net/project/showfiles.php?group_id=27747&package_id=19531
Reading http://new.scipy.org/Wiki/Download
All is not lost, however; pip can install from Subversion (SVN), Git, Mercurial, and Bazaar repositories. SciPy uses SVN:
pip install svn+http://svn.scipy.org/svn/scipy/trunk/#egg=scipy
Update (12-2012):
pip install git+https://github.com/scipy/scipy.git
Since NumPy is a dependency, it should be installed as well.
ANSWER 3
Score 33
In Ubuntu 10.04 (Lucid), I could successfully pip install scipy (within a virtualenv) after installing some of its dependencies, in particular:
$ sudo apt-get install libamd2.2.0 libblas3gf libc6 libgcc1 libgfortran3 liblapack3gf libumfpack5.4.0 libstdc++6 build-essential gfortran libatlas-sse2-dev python-all-dev
ANSWER 4
Score 19
I tried all the above and nothing worked for me. This solved all my problems:
pip install -U numpy
pip install -U scipy
Note that the -U option to pip install requests that the package be upgraded. Without it, if the package is already installed pip will inform you of this and exit without doing anything.