| Installing Opus & UrbanSim > Python Packages > Installing local versions of scipy's ndimage and stsci packages | |
These instructions are for people who are having problems installing scipy from the executable or building it from source. These instructions have been tested on Linux.
Opus needs both numpy and the scipy.ndimage package. The scipy.ndimage package is included in numarray, but not in numpy. If you need it, the recommended route is to install scipy.
In some cases, it is not practical to install scipy. For instance, installing scipy can be difficult if you need to build scipy from source on a Linux machine where you do not have root permissions.
If you cannot install scipy, you can instead install just the scipy.ndimage. We have stashed a copy of this package on our website and modified it to install into the scipy directory of your site-packages directory. Here are the instructions for installing this package:
python setup.py install --prefix=~/temp_install_dir
The reason for doing the last two steps rather than installing ndimage directly is that we want it to be a subpackage under scipy rather than its own package at the top level.
In rare cases, you may also want the stsci package. This package is not used by Opus or UrbanSim. You should only need this if you have written code that used numarray.convolve or numarray.image, or want to write code that uses stsci. As with ndimage, this package is included in numarray, but not in numpy.
If you need to install scipy.stsci and cannot install the full scipy package, repeat steps 6-8, above, for stsci.zip.