Getting Numpy on EC2

After spending around half an hour trying to install numpy on Amazon Linux EC2, this StackOverflow answer saved me

1
2
3
4
5
6
sudo yum -y install gcc-c++ python27-devel atlas-sse3-devel lapack-devel
wget https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.11.2.tar.gz
tar xzf virtualenv-1.11.2.tar.gz
python27 virtualenv-1.11.2/virtualenv.py sk-learn
. sk-learn/bin/activate
pip install numpy

Simply run and grab coffee.