Skip to content

Instantly share code, notes, and snippets.

@puilp0502
Created September 5, 2016 12:02
Show Gist options
  • Save puilp0502/c569555bf7ed73f70ec25b7e095535c9 to your computer and use it in GitHub Desktop.
Save puilp0502/c569555bf7ed73f70ec25b7e095535c9 to your computer and use it in GitHub Desktop.
install-pip.sh
echo "#### Installing setuptools... ####"
wget https://bootstrap.pypa.io/ez_setup.py -O - | sudo python > /dev/null
if [[ ! $? ]]; then
echo "Failed!"
exit 1
fi
echo "#### Installing pip... ####"
wget https://bootstrap.pypa.io/get-pip.py -O - | sudo python > /dev/null
if [[ ! $? ]]; then
echo "Failed!"
exit 1
fi
if [[ $PATH != *"/usr/local/bin"* ]]; then
echo 'Adding /usr/local/bin to $PATH'
export PATH="/usr/local/bin:$PATH"
fi
echo "#### Installing virtualenv... ####"
sudo pip install virtualenv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment