Skip to content

Instantly share code, notes, and snippets.

@k8scat
Last active April 17, 2021 16:54
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save k8scat/597c278986fbb519cf28831448428cc5 to your computer and use it in GitHub Desktop.
Save k8scat/597c278986fbb519cf28831448428cc5 to your computer and use it in GitHub Desktop.
Install Python3.8 on Ubuntu 16
#!/bin/bash
#
# Install Python3.8 and pip on Ubuntu 16
# Maintainer: k8scat@gmail.com
set -e
add-apt-repository -y ppa:deadsnakes/ppa
apt-get update -y
apt-get install -y python3.8 python3.8-distutils
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python3.8 get-pip.py
rm -f get-pip.py
echo "alias python=\"/usr/bin/python3.8\"" >> /etc/profile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment