Notes on Ubuntu (Linux) computing

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

Install PyMC on Ubuntu 12.04

with 2 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://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
Advertisements

Written by Chris S

November 5, 2012 at 5:33 pm

2 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


Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s

%d bloggers like this: