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:

  1. Start by updating the packages list and installing the prerequisites:

    sudo apt updatesudo apt install software-properties-common
    Copy
  2. Next, add the deadsnakes PPA to your sources list:

    sudo add-apt-repository ppa:deadsnakes/ppa
    Copy

    When prompted press Enter to continue:

    Press [ENTER] to continue or Ctrl-c to cancel adding it.
    Copy
  3. Once the repository is enabled, install Python 3.7 with:

    sudo apt install python3.7
    Copy
  4. 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 --version
    Copy
    Python 3.7.3
posted @ 2019-09-25 17:21  kissrule  阅读(386)  评论(0编辑  收藏  举报