×


Install Python on Linux Mint 20 - Step by step guide ?

Python is a very useful high-level language that is used very extensively. It aims at developing high-end programs with exceptional computing capabilities. Moreover, it can also be used for mathematical computations very conveniently.

Here at Ibmi Media, we shall look into how to install Python 3.9 on a Linux Mint 20.3 system.


Steps to install Python 3.9 on Linux Mint 20.3

1. Perform System Update

Ensure your system is up to date by running the following apt command in the terminal:

$ sudo apt update


2. Install the Software Properties Common Package

After running an update on your desired Linux Mint system, you have to install the Software Properties Common package on it with the help of the below command:

$ sudo apt install software-properties-common


3. Add the Python Repository to your System

After installing the package specified above on Linux Mint, you need to add the Python repository to your system with the following command:

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

Upon a successful execution of this command, the above-mentioned PPA repository will be added to your Linux Mint system.


4. Install Python 3.9 on your System

Now, you can install Python 3.9 on your system with the below command:

$ sudo apt install python3.9


How to Verify the Exact Version of Python Installed on your System ?

After installing Python 3.9 on Linux Mint, you can find out its exact version with the help of the following command:

$ python --version


How to Remove Python from your Linux Mint system ?

Now, if you wish to remove Python from your Linux Mint system, then, you will have to execute the following two steps:

1. Uninstall Python 3.9 from your System

First, you have to uninstall Python 3.9 from your Linux Mint system with the below command:

$ sudo apt-get purge --autoremove python3.9

2. Remove the Python Repository from your System

Now, you also need to remove the Python repository that you have added earlier to your system by running the below command:

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


[Need help in fixing Linux Mint system issues ? We can help you. ]


Conclusion

This article covers how you can install Python 3.9 on your Linux Mint system. In fact, Python programming language can help in solving your programmatic problems.


Main features of Python includes:

  • It can be used on a server to create web applications.
  • It can be used alongside software to create workflows.
  • It can connect to database systems. It can also read and modify files.
  • It can be used to handle big data and perform complex mathematics.
  • It can be used for rapid prototyping or production-ready software development.