sudo apt update
-apt-repository ppa:deadsnakes/ppa
sudo add-get update
sudo apt-get install python3.7
sudo apt-get install python3.7-dev
sudo apt-get install python3.7-venv
sudo apt-pip sudo apt install python3
Install Python 3 on Ubuntu
Steps to install Python3.7 on an Ubuntu machine.
Setup Python3.7 on Ubuntu
I often use a Google Cloud VM to for my projects. Depending on the type of the machine, it may or may not come with a preinstalled version of Python 3. Here’s a simple snippet that I put together from multiple sources to install Python and configure pip on the environment.