Sunday, 19 April 2020

How to install Python3.8 on Uuntu 19.10 or 20.04

Python is one of the most popular programming languages in the world. With its simple and easy to learn syntax, Python is a great choice for beginners and experienced developers. Python is quite a versatile programming language. It can be used as a scripting language, to build games, develop websites, create machine learning algorithms, and analyze data.
Python 3.7 includes many new features such as postponed evaluation of type annotations, support for data classes and context variables, customization of access to module attributes, and more.
This tutorial describes two ways of installing Python 3.8 on Ubuntu 19.10: By using the standard apt tool from the deadsnakes PPA, and by building from the source code.


Installing Python 3.8 on Ubuntu with Apt

Installing Python 3.8 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
     
  2. Next, add the deadsnakes PPA to your sources list:
     
    sudo add-apt-repository ppa:deadsnakes/ppa

    When prompted press Enter to continue:
     
    Press [ENTER] to continue or Ctrl-c to cancel adding it.
     

  3. Once the repository is enabled, install Python 3.8 with:
     
    sudo apt install python3.8
     
  4. At this point, Python 3.8 is installed on your Ubuntu system and ready to be used. You can verify it by typing:
     
    python3.8 --version
     
    Output: Python 3.8.0


No comments:

Post a Comment