Skip to content

Instantly share code, notes, and snippets.

@Veilkrand
Last active November 21, 2022 00:05
Show Gist options
  • Save Veilkrand/7463d4c7a77fb1e6a90d405bddfc30f7 to your computer and use it in GitHub Desktop.
Save Veilkrand/7463d4c7a77fb1e6a90d405bddfc30f7 to your computer and use it in GitHub Desktop.
Install Python3.7 in Ubuntu 16.04
## For Ubuntu 16.04 Xenial
# Install Python3.7
sudo apt update
sudo apt install software-properties-common
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt update
sudo apt install python3.7
# Create virtual environment with python3.7
sudo apt-get install python3-pip
sudo pip3 install virtualenv
virtualenv -p /usr/bin/python3.7 venv
source venv/bin/activate
# Install Reqs
pip3 install -r reqs.txt
# Test Run
python myapp.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment