Installing NumPy and matplotlib into a virtualenv using Python 2.7 should be an easy task, right? Turns out there are some hoops to jump through in order to make it work properly. Here is what worked for me on my Ubuntu 11.04 (Natty) system.
First, remove the system-wide NumPy and matplotlib packages (this might not be necessary though):
Install the atlas dev files
Apply the quickfix according to: https://github.com/pypa/virtualenv/issues/118
1 2 3
Actually install numpy in the virtualenv
There is some problem with the version of matplotlib which is available in PyPi through
easy_install. However, when pointing
pip directly to the matplotlib tarball, the installation succeeds without a problem.
I'm sure this last command will require some Ubuntu/Debian developer packages to be installed. My system had everything which was required for the compilation to succeed. Feel free to leave me a comment and I will add a list of prerequisites here.