PyBc/InstallPythonOnLinux

Installing Scientific Python on Linux

Distributions

Debian Lenny

su -
aptitude install ipython python-numpy python-numpy-doc python-numpy-ext python-numpy-dev python-matplotlib python-matplotlib-data python-matplotlib-doc python-scipy mayavi2 python-setuptools r-base idle
easy_install rpy2

Fedora 12

su -
yum install ipython scipy numpy python-basemap python-matplotlib Mayavi python-setuptools-devel R python-tools
easy_install rpy2

Gentoo

su -
emerge ipython scipy numpy matplotlib mayavi:2 R '>=dev-python/rpy-2' basemap

Ubuntu 9.10

sudo apt-get install ipython python-numpy python-numpy-doc python-numpy-ext python-numpy-dev python-matplotlib python-matplotlib-data python-matplotlib-doc python-scipy mayavi2 python-setuptools r-base python-rpy2 idle

Ubuntu 9.04

sudo apt-get install ipython python-numpy python-numpy-doc python-numpy-ext python-numpy-dev python-matplotlib python-matplotlib-data python-matplotlib-doc python-scipy python-setuptools r-base idle
easy_install rpy2

UW-Madison CAE

ssh -X <username>@best-tux.cae.wisc.edu
mkdir rpy2i
wget http://downloads.sourceforge.net/project/rpy/rpy2/2.0.8/rpy2-2.0.8.tar.gz
tar xvzf rpy2-2.0.8.tar.gz
cd rpy2-2.0.8
python setup.py install --root=~/rpy2i
echo 'export PYTHONPATH="${HOME}/rpy2i/usr/lib/python2.5/site-packages/"' >> ~/.bashrc
source ~/.bashrc

Fire up an IPython Shell

At a shell prompt

ipython

Test your installation

Awesome! Proceed to Testing your installation.

Attachments