Skip to content

Instantly share code, notes, and snippets.

@kirantambe
Created August 1, 2017 09:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kirantambe/33f904082e64015c11eaec9106d2331f to your computer and use it in GitHub Desktop.
Save kirantambe/33f904082e64015c11eaec9106d2331f to your computer and use it in GitHub Desktop.
Install essential python development tools on ubuntu
set -e
mkdir -p $HOME/work
sudo apt-get update
echo "Installing pip"
sudo apt-get install python-pip
echo "Installing pip, python-dev, build-essential"
sudo apt-get install -y python-pip python-dev build-essential
echo "Installing pip, python-dev, build-essential"
sudo pip install virtualenv virtualenvwrapper
echo "Upgrading pip"
sudo pip install --upgrade pip
echo "Creating a backup of your bash.rc"
cp ~/.bashrc ~/.bashrc.backup
echo "Updating bashrc"
echo "export WORKON_HOME=$HOME/.virtualenvs" >> ~/.bashrc
echo "export PROJECT_HOME=$HOME/work" >> ~/.bashrc
echo "source /usr/local/bin/virtualenvwrapper.sh" >> ~/.bashrc
source ~/.bashrc
echo "Done."
set +e
@kirantambe
Copy link
Author

Installs pip, virtualenv, virtualenvwrapper
Creates a directory in home called work where projects can be put.

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