This is an archival dump of old wiki content --- see scipy.org for current material

Installing numpy and scipy

These are my personal notes on installing numpy/scipy. If anything is incorrect, feel free to correct! If anything of this is useful for the more general installation, just use it.

The following assumes bash shell syntax and python 2.3 (for other python versions, just change the 2.3...).

Download a released version or get the development version:

svn co http://svn.scipy.org/svn/numpy/trunk numpy
svn co http://svn.scipy.org/svn/scipy/trunk scipy

Define destination directory:

NUMPY_SCIPY=$HOME/python/
export PYTHONPATH=$NUMPY_SCIPY/lib/python2.3/site-packages:$PYTHONPATH

NumPy

Install numpy:

cd numpy
python setup.py install --prefix=$NUMPY_SCIPY | tee ../build_numpy.log
cd ..

Test numpy:

cd ~
ipython
import numpy
numpy.__version__
numpy.test(10)
cd -

Scipy

Install``scipy``:

cd  scipy
python setup.py install --prefix=$NUMPY_SCIPY | tee ../build_scipy.log

Test scipy:

cd ~
ipython
import scipy
scipy.__version__
scipy.test(1)
scipy.pkgload()
scipy.test(10)

Remarks

  • Enable scipy.sandbox.xplt by uncommenting the line:

    #config.add_subpackage('xplt')

    in Lib/sandbox/setup.py

Updating from svn

To update your working copy do:

cd numpy
svn update
cd ..

cd  scipy
svn update
cd ..

Creating patches

When you make additions/changes to the code or documentation, you can submit them as a patch. For this change to the numpy (or scipy) directory and do:

svn diff > svn_diff.diff

The corresponding file can then for example be posted on scipy-dev mailing (if it is not too large).

SciPy: ArndBaecker/InstallScipy (last edited 2015-10-24 17:48:25 by anonymous)