Notes on Ubuntu (Linux) computing

Brief notes on installation, setup and other tasks in the Ubuntu world

Install PyMC on Ubuntu 12.04

with 3 comments

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://

Finally, compile and install

cd pymc/
sudo python config_fc --fcompiler gfortran build
sudo python install

Written by Chris S

November 5, 2012 at 5:33 pm

3 Responses

Subscribe to comments with RSS.

  1. […] PyMC — a nice MCMC package for Bayesian inference using python. […]

    • Thanks Chris. I was getting “error: [Errno 2] No such file or directory: ‘lapack/double/dpotrs.f'” on Ubuntu using pip install and this fixed it.

      Jonathan Mugan (@jmugan)

      August 26, 2016 at 5:54 pm

  2. Really useful! Thanks!


    March 22, 2018 at 6:46 pm

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: