Skip to content

How to Install Supporting Packages for Ubuntu Linux

jessicahunter24 edited this page Apr 14, 2013 · 12 revisions

Most of the packages required for PINSPEC can be installed easily using the 'sudo apt-get' command in a terminal window. Note that these commands are used for Debian/Ubuntu Linux. They can also be installed using the Ubuntu Software Center.

###Python v2.7 To install Python v2.7, open a terminal window and use the following command:

sudo apt-get install python2.7 ###matplotlib v1.2 To install matplotlib, use the command:

sudo apt-get install python-matplotlib ###numpy v1.7 and scipy v0.12.0b1 To install numpy, use the command:

sudo apt-get install python-numpy

To install scipy, use the command:

sudo apt-get install python-numpy

Some older versions of Ubuntu may not be able to install the latest versions of numpy and scipy in this manner. To check your version of numpy and scipy start the Python interpreter using the command:

`python'

In the interpreter, import the numpy and scipy modules using the commands:

import numpy

import scipy

Check the versions using the commands:

numpy.version.version

scipy.version.version

If the versions are incorrect, the latest versions can be installed using git (setup found here). If git is already installed, it is possible to git clone the codes using the following commands:

git clone git://github.com/numpy/numpy.git numpy

git clone git://github.com/scipy/scipy.git scipy

In order to install the packages, navigate into the first level of each directory and use the command:

python setup.py install

More complicated build instructions can also be found here.

To see other options for installing, visit the numpy (and scipy) website here.

###SWIG To install SWIG, use the following command:

sudo apt-get install swig

Return to Installing PINSPEC

Home

Clone this wiki locally