Created
September 5, 2016 12:02
-
-
Save puilp0502/c569555bf7ed73f70ec25b7e095535c9 to your computer and use it in GitHub Desktop.
install-pip.sh
This file contains 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
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