Skip to content

Instantly share code, notes, and snippets.

@jblachly
Created February 17, 2016 20:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jblachly/a1a08dcb8b4854d32726 to your computer and use it in GitHub Desktop.
Save jblachly/a1a08dcb8b4854d32726 to your computer and use it in GitHub Desktop.
To use matplotlib in virtualenv on Ubuntu 14.04
make virtualenv
symlink as described here: http://www.stevenmaude.co.uk/posts/installing-matplotlib-in-virtualenv
ln -sf /usr/lib/python2.7/dist-packages/{glib,gobject,cairo,gtk-2.0,pygtk.py,pygtk.pth} $VIRTUAL_ENV/lib/python2.7/site-packages
Then pip install matplot lib -- if you pip install before, the install won't detect necessary packages for the backends to install correctly
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment