Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Python by (50.2k points)

Can anyone help me with installing Python in Ubuntu?

1 Answer

0 votes
by (108k points)
edited by

First of all, there are some prerequisites for installing Python in the Ubuntu OS:

  • A system, running Ubuntu 18.04 or Ubuntu 20.04
  • A user account with sudo privileges
  • Access to a terminal window/command line (Ctrl–Alt–T)

Now, follow the below steps for installing Python in Ubuntu:

Step 1: Update and refresh repository lists; open a terminal window, and enter the following:

sudo apt update

Step 2: Install supporting software with this command

sudo apt install software-properties-common

install additional software for Python

Step 3: Add Deadsnakes PPA by executing the following:

sudo add-apt-repository ppa:deadsnakes/ppa

Here, the system will ask you to press Enter to continue. Do so and allow it to finish, and then refresh the package lists once again:

sudo apt update

Step 4: Install Python 3. Now, you can begin the installation of Python 3.8 with the below command.

sudo apt install Python 3.8

Step 5: Allow the process to complete and verify if the Python version is installed successfully:

Python ––version

If you are looking for an online course to learn Python, check out this Python Online Course by Intellipaat.

Related questions

0 votes
1 answer
asked Dec 16, 2020 in Python by ashely (50.2k points)
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
asked Feb 3, 2021 in Python by blackindya (18.4k points)

Browse Categories

...