Install PyMC on Ubuntu 12.04
PyMC is a nice Python package for implementing MCMC sampling in Bayesian inference. I have used this package on a variety of projects in Ubuntu 10.04lts and will provide my notes on how to install the development version from the github repository. This is important for me because I have found a variety of instances where I needed the latest PyMC version to accomplish particular goals.
To start, make sure some dependencies are installed:
sudo apt-get install python-dev gcc gfortran
If, like me, you already have many Python packages installed you will have some or most of the above installed. Next, cd to a directory where you would like to keep the PyMC git repository on your machine and clone the repository:
git clone git://github.com/pymc-devs/pymc.git
Finally, compile and install
cd pymc/ sudo python setup.py config_fc --fcompiler gfortran build sudo python setup.py install