Installing SciPy with pip Installing SciPy with pip python python

Installing SciPy with pip


Prerequisite:

sudo apt-get install build-essential gfortran libatlas-base-dev python-pip python-devsudo pip install --upgrade pip

Actual packages:

sudo pip install numpysudo pip install scipy

Optional packages:

sudo pip install matplotlib   OR  sudo apt-get install python-matplotlibsudo pip install -U scikit-learnsudo pip install pandas

src


An attempt to easy_install indicates a problem with their listing in the Python Package Index, which pip searches.

easy_install scipySearching for scipyReading http://pypi.python.org/simple/scipy/Reading http://www.scipy.orgReading http://sourceforge.net/project/showfiles.php?group_id=27747&package_id=19531Reading 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.


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