Installing SciPy for Python on Amazon-linux-EC2

First, install pip, a package-manager for python:

wget http://pypi.python.org/packages/source/p/pip/pip-1.1.tar.gz#md5=62a9f08dd5dc69d76734568a6c040508
tar -xvf pip*.gz
cd pip*
sudo python setup.py install

Install atlas-devel and lapack libraries:

yum -y install atlas-devel
yum install lapack
pip install scipy

For the last three lines thanks to DRUNKSANDLAMPPOSTS:
http://drunks-and-lampposts.com/2012/01/30/ec2-tutorial-numpy-and-scipy/
Before I installed atlas-devel, I was having trouble with installing atlas from source (atlas is a requirement for scipy). When I tried to install scipy using pip, pip was complaining about Blas libraries.
Installing atlas-devel was the key.

Advertisements
This entry was posted in EC2, Python, SciPy and tagged , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s