When I try:
$ sudo pip install numpy
on my Ubuntu 12.04 server, I get:
----------------------------------------------------
Some of these packages may not be required (don't have time to check in detail) but in a setup script of mine to install the NumPy stack I install the following Ubuntu packages first:
- build-essential
- gfortran
- libatlas-base-dev
- libatlas3gf-base
- python-dev
- libjpeg-dev
- libxml2-dev
- libfreetype6-dev
- libpng-dev
Otherwise you could simply use the Anaconda Python distribution, which works great.