Skip to content
Will edited this page Mar 10, 2014 · 3 revisions

Installing dependencies on Ubuntu >= 12.04

These are useful tips for installing dependencies from pip or from source, for example in a virtualenv. If you don't want the hassle, just install from the Ubuntu repos by sudo apt-get install python-numpy for example.

Note that this was tested on Ubuntu 12.04 and Ubuntu 13.10.

Numpy

  • Needs to install python-dev: $ sudo apt-get install python-dev
  • Install numpy: $ pip install numpy

Scipy

  • Need Fortran, Blas and LAPACK: $ sudo apt-get install gfortran libopenblas-dev liblapack-dev
  • Install scipy: $ pip install scipy

PySide

  • Need Sphinx v1.1.3, see issue. $ pip install "sphinx==1.1.3"
  • Other prerequisites from here: $ sudo apt-get install build-essential git cmake libqt4-dev libphonon-dev python2.7-dev libxml2-dev libxslt1-dev qtmobility-dev
  • Install PySide: $ pip install pyside
  • Afterwards, you can re-upgrade sphinx by: $ pip install --upgrade sphinx

Cython

  • $ pip install cython

PyTables

  • Need numexpr: $ pip install numexpr
  • Need HDF5 library: $ sudo apt-get install libhdf5-serial-dev
  • Install PyTables: $ pip install tables

pyqtgraph

  • $ pip install pyqtgraph

Clone this wiki locally