Setting up Probabilistic Programming & Bayesian Methods for Hackers was a bit tricky. Here’s what worked for me on Ubuntu 12.04:

sudo apt-get install libsqlite3-dev
  • Install https://github.com/yyuu/pyenv
  • Install https://github.com/yyuu/pyenv-virtualenv
    • I suggest not using “$ echo ‘eval “$(pyenv virtualenv-init -)”’ » ~/.bash_profile”. Just activate when necessary using “pyenv activate ".
    • Note that when making a new virtualenv, it is global and not created in the current directory (like normal virtualenv).
pyenv install 2.7.8
pyenv virtualenv venvtwo
git clone https://github.com/CamDavidsonPilon/Probabilistic-Programming-and-Bayesian-Methods-for-Hackers
cd <that folder name>
pip install -r requirements.txt
# It should now work!
ipython notebook