ec2 upgrade python 3.7 to 3.8 code example Example: ec2 upgrade python 3.7 to 3.8 sudo amazon-linux-extras install python3.8