Skip to content

Instantly share code, notes, and snippets.

@gotgenes
Last active December 11, 2015 17:48
Show Gist options
  • Save gotgenes/4636766 to your computer and use it in GitHub Desktop.
Save gotgenes/4636766 to your computer and use it in GitHub Desktop.
Quick installation of Python dependencies and settings.
#!/bin/bash
set -e
set -u
curl http://python-distribute.org/distribute_setup.py | python
curl https://raw.github.com/pypa/pip/master/contrib/get-pip.py | python
pip install nose
easy_install readline
pip install ipython
echo 'export PATH="${HOME}/.local/bin:${PATH}"' >> ~/.bashrc
cat >> ~/.bash_profile <<EOF
# include .bashrc if it exists
if [ -f ~/.bashrc ]; then
source ~/.bashrc
fi
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment