Skip to content

Instantly share code, notes, and snippets.

@npyoung
Last active August 29, 2015 14:16
Show Gist options
  • Save npyoung/1d5ddcc289075f55ce1c to your computer and use it in GitHub Desktop.
Save npyoung/1d5ddcc289075f55ce1c to your computer and use it in GitHub Desktop.
Scientific python2.7 install for Amazon Linux AMI
# 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
@npyoung
Copy link
Author

npyoung commented Mar 10, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment