How to Install Python 3.7 on Ubuntu 18.04
Installing Python 3.7 on Ubuntu with Apt
Installing Python 3.7 on Ubuntu with apt is a relatively straightforward process and will only take a few minutes:
-
Start by updating the packages list and installing the prerequisites:
sudo apt updatesudo apt install software-properties-common -
Next, add the deadsnakes PPA to your sources list:
sudo add-apt-repository ppa:deadsnakes/ppaWhen prompted press
Enterto continue:Press [ENTER] to continue or Ctrl-c to cancel adding it. -
Once the repository is enabled, install Python 3.7 with:
sudo apt install python3.7 -
At this point, Python 3.7 is installed on your Ubuntu system and ready to be used. You can verify it by typing:
python3.7 --versionPython 3.7.3

浙公网安备 33010602011771号