Installing Numerical Python

Numerical Python is available from Source Forge, an open source project management site. You can get Numerical Python precompiled in a zip or Red Hat Package Manager file (rpm), or you can get it as source in a tar/gz file.

zip: If you are running a Windows system you should download the zip compressed version. This contains a precompiled version of Numerical Python. Unzip the file into your Python directory using an unzip program, such as WinZip or PKZip. That should be all you need to do.

rpm: If you are using a Linux Intel system with support for rpm files, you can get Numerical Python precompiled and ready to install. Download the file and install it using the rpm program:

# rpm -Uvh python-numpy-15.2-2.i386.rpm

source: For all other systems the source code is available in the tar/gz file and will need to be compiled. To do so, use the Distutils module (which you may also have to download and install. It was not included with Python 1.5.2.) Using Distutils you should be able to install the Numerical Python module by running the program included with the module. On a Unix system you would run it this way:

# gunzip -c Numerical-15.2.tar.gz | tar xvf -
# cd Numerical-15.2
# python install

If you run into problems you may want to consult the Distutils documentation Installing Python Modules.

Once you think you have it, test it out! Start up Python and try to import Numeric.

>>> import Numeric

If it just returns the prompt, you should be set for some serious number crunching. If you get an import error, something didn't get installed right. Retrace your steps and see where you might have gone wrong.