Skip to content

Instantly share code, notes, and snippets.

@ssmythe
Created May 6, 2017 15:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save ssmythe/60689304cd103d55f24714ca95d16b36 to your computer and use it in GitHub Desktop.
Save ssmythe/60689304cd103d55f24714ca95d16b36 to your computer and use it in GitHub Desktop.
Download get-pip.py and install pip
#!/usr/bin/env bash
if [[ $(whoami) != "root" ]]; then
echo "ERROR: must be run as root"
exit 1
fi
cd /tmp
curl -sSL https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python get-pip.py
rm -f get-pip.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment