Last active
July 29, 2019 00:20
-
-
Save cam8001/60a3456936bf0df05f11d5286c2af4bc to your computer and use it in GitHub Desktop.
Upgrade python to python 3 on Amazon Linux 2
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
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