scipy 11 and scipy 12

Oscar Benjamin oscar.j.benjamin at gmail.com
Wed Sep 18 08:28:44 EDT 2013


On 18 September 2013 03:48, Steven D'Aprano <steve at pearwood.info> wrote:
> On Tue, 17 Sep 2013 20:06:44 -0400, Susan Lubbers wrote:
>
>> Our group is a python 2.7 which is installed in a shared area.  We have
>> scipy 11 installed in site-packages.  How would I install scipy 12 so
>> that I used the shared install of python but scipy 12 instead of 11?
>
> If you are using Python 2.6 or better, you should be able to include the
> option "--user" when installing Scipy using either pip or distutils. I
> haven't tried these, but:
>
> # using pip:
> pip install --install-option="--user" scipy

Is there a difference between --install-option="--user" and just
passing --user directly?

> If that fails, follow the advice given here to install from svn:
> http://stackoverflow.com/questions/2213551/installing-scipy-with-pip
>
>
> pip install --install-option="--user" git+http://github.com/scipy/scipy/
>
>
> Otherwise, if you are installing from source using distutils, add the
> --user option directly:
>
> python setup.py install --user scipy

To be clear any of the above options are for building scipy from
source which means you need a C compiler, a Fortran compiler and to
separately build/install BLAS/LAPACK:
http://stackoverflow.com/questions/7496547/python-scipy-needs-blas

The best instructions for meeting these requirements depend on your OS
(are you using Windows?).

For Python 2.7 I think that easy_install will be able to install from
the sourceforge binaries, e.g

    easy_install --user scipy

but I may be wrong.

You'll need to ensure that you don't have a mismatch between
numpy/scipy versions and I don't know if easy_install will handle that
for you. This may mean separately installing numpy as well.


Oscar



More information about the Python-list mailing list