When I try:
$ sudo pip install numpy
on my Ubuntu 12.04 server, I get:
----------------------------------------------------
pip won't install the necessary compilers for you.
pip
If you simply want numpy, and don't need to go through pip, use
sudo apt-get install python-numpy
and you'll get all the requisites as well (such as python-dev).
python-dev