close

How to update python version to 3.8?

Hello Guys, How are you all? Hope You all Are Fine. Today We Are Going To learn about How to update python version to 3.8 in Python. So Here I am Explain to you all the possible Methods here.

Without wasting your time, Let’s start This Article.

Table of Contents

How to update python version to 3.8?

  1. How to update python version to 3.8?

    First install the Ubuntu software properties package if it’s not already installed on your system.

  2. update python version to 3.8

    First install the Ubuntu software properties package if it’s not already installed on your system.

Method 1

Installation using third party PPA repository

Step 1: First install the Ubuntu software properties package if it’s not already installed on your system.

$ sudo apt update

$ sudo apt install software-properties-common

Step 2: After that run the commands to add the PPA.

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

Step 3: Finally, run below to install Python 3.8

$ sudo apt update
$ sudo apt install python3.8

You can check as below:

$ python3 --version

Python 3.8.1

OK done.

Method 2

  1. Check if Python3 is correctly installed by, for example, running python3 -V in the command-line (this will show you the installed version)
    • This should show something like Python 3.8 ...
    • If you get an error here, like it is an unknown command, something probably went wrong during the installation…
  2. Run pip3 install pillow to install pillow (Python 3)

Summery

It’s all About this issue. Hope all Methods helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which Method worked for you? Thank You.

Also, Read