When I try:
$ sudo pip install numpy
on my Ubuntu 12.04 server, I get:
----------------------------------------------------
It seems like your system does not have gcc.
gcc
Install build tools using following command:
apt-get install build-essential python-dev