views:

571

answers:

3

It is possible to install numpy with pip using pip install numpy.

Is there a similar possibility with scipy? (Doing pip install scipy does not work)

Update

The package scipy is now available to be installed with pip, so the question is not relevant anymore.

+4  A: 

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, Git, Mercurial, and Bazaar repos. SciPy uses SVN:

pip install svn+http://svn.scipy.org/svn/scipy/trunk/#egg=scipy

Since Numpy is a dependency, it should be installed as well.

cpharmston
Brilliant! What did it for me was:`pip install svn+http://svn.scipy.org/svn/scipy/trunk`Note that, following http://stackoverflow.com/questions/651305, you may also choose a given revision (say 5839, which I believe is the last stable version, 0.7.1) using:`pip install http://svn.scipy.org/svn/scipy/!svn/bc/5839/trunk/`although I have not tested that...
Olivier
A: 

I can get scipy installed with "pip install scipy" if I first install blas, lapack and gcc-fortran as system packages (I'm using Arch Linux).

+1  A: 

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
elaichi