Skip to content

Instantly share code, notes, and snippets.

@cam8001
Last active July 29, 2019 00:20
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 cam8001/60a3456936bf0df05f11d5286c2af4bc to your computer and use it in GitHub Desktop.
Save cam8001/60a3456936bf0df05f11d5286c2af4bc to your computer and use it in GitHub Desktop.
Upgrade python to python 3 on Amazon Linux 2
sudo -s
yum update -y
yum install -y python36
alternatives --set python /usr/bin/python3.6
pip install --upgrade pip
visudo
# Add /usr/local/bin to secure_path
source ~/.bashrc
# @see https://stackoverflow.com/a/40616976/15088
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment