Last active
August 29, 2015 14:16
-
-
Save npyoung/1d5ddcc289075f55ce1c to your computer and use it in GitHub Desktop.
Scientific python2.7 install for Amazon Linux AMI
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# update install packages | |
yum update -y | |
# install build tools | |
yum install make automake gcc gcc-c++ kernel-devel git-core -y | |
# install python 2.7 and change default python symlink | |
yum install python27-devel -y | |
rm /usr/bin/python | |
ln -s /usr/bin/python2.7 /usr/bin/python | |
# point yum to the right version of python | |
sed -i s/python/python2.6/g /usr/bin/yum | |
sed -i s/python2.6/python2.6/g /usr/bin/yum | |
# install pip | |
wget https://bootstrap.pypa.io/get-pip.py | |
python get-pip.py | |
# install matplotlib prereqs | |
yum install freetype-devel libpng-devel -y | |
# install python packages through pip | |
pip install numpy scipy six Pillow cython | |
pip install networkx matplotlib | |
pip install "ipython[notebook]" | |
pip install seaborn scikit-image bokeh | |
pip install boto |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Based on Sebastian Kreutzberger's approach