Created
August 1, 2017 09:28
-
-
Save kirantambe/33f904082e64015c11eaec9106d2331f to your computer and use it in GitHub Desktop.
Install essential python development tools on ubuntu
This file contains hidden or 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
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Installs pip, virtualenv, virtualenvwrapper
Creates a directory in home called work where projects can be put.