- How to Install Python 3.9 on Linux Mint 20?
- Installing Python 3.9 on Linux Mint 20 from the PPA repository
- Installing Python 3.9 on Linux Mint 20 from the source code
- Conclusion
- About the author
- Kamran Sattar Awaisi
- How to Install Latest Python on Linux Mint 21
- How to Install Latest Python on Linux Mint 21
- How to Uninstall Python from Linux Mint 21
- Conclusion
- About the author
- Syeda Wardah Batool
- Как установить Python 3.9 на Linux Mint 20
- Установите Python 3.9 на Linux Mint 20 Ulyana
- Шаг 1. Перед запуском приведенного ниже руководства важно убедиться, что ваша система обновлена, выполнив следующие apt команды в терминале:
- Шаг 2. Установка Python 3.9 на Linux Mint 20.
How to Install Python 3.9 on Linux Mint 20?
Python is popular and is almost used in every type of computer science project. However, it has gained a lot of popularity in Artificial intelligence and its associated fields like Machine Learning, Deep Learning, etc.
Python 3.9 is the latest major release of Python. It is leveraged with many updates.
Python 3.9 is available from the deadsnakes PPA repository. Moreover, we can also build Python on Linux Mint 20 from the source code.
Installing Python 3.9 on Linux Mint 20 from the PPA repository
Installing Python 3.9 on Linux Mint 20 from the deadsnakes PPA repository is very easy and straightforward.
Perform the below-given steps to install Python 3.9 on Linux Mint 20 from the deadsnakes repository:
Step 1: Update apt cache
Fire up the terminal and update the apt cache with the command:
Step 2: Install the dependencies
Next, type the command to install the required dependencies that are a prerequisite of Python 3.9:
Step 3: Add PPA repository
Next, add the PPA repository:
Step 4: Install Python 3.9
Install Python 3.9 as follows:
Press ‘y’ to continue installing Python 3.9.
Step 5: Verify the Python 3.9 installation
After installing Python 3.9, verify the installation with the command:
Python 3.9 is successfully installed on Linux Mint 20.
Note: In case if you face any dependency issue after installing Python 3.9, then run the below-given command to fix the issue:
Installing Python 3.9 on Linux Mint 20 from the source code
This is another way of installing Python 3.9 Linux Mint 20. It is not recommended to install Python 3.9 from the source code. However, you may need it in various situations.
Perform the below-given steps to install Python 3.9:
Step 1: Install required dependencies for Python 3.9
First, update the apt repository and install dependencies:
$ sudo apt install libffi-dev libsqlite3-dev zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev build-essential libreadline-dev wget libbz2-dev
Step 2: Get the Python 3.9 source code
Next, get the latest Python 3.9 source code with the wget command:
Step 3: Extract Python 3.9 source code tar file
When the Python 3.9 source code tar file is downloaded, extract the archive with the command:
Step 4: Run configure script
Next, navigate to the Python 3.9.1 directory and run the configure script:
The –enable-optimizations run the various tests and improves the configuration process.
Step 5: Build Python 3.9
Once Python 3.9 is configured, the next step is to build it with the command:
To make the build process faster, you can also specify the number of cores with the –j option as follows:
Step 6: Install Python libraries
Next, install Python 3.9 with the command:
The altinstall will overwrite the existing Python3 binary.
Python 3.9 is installed successfully.
Conclusion
Python 3.9 is the newest release of Python. It is available from the deadsnakes repository and source code. This post explains the Python 3.9 installation on Linux Mint 20.
About the author
Kamran Sattar Awaisi
I am a software engineer and a research scholar. I like to write article and make tutorial on various IT topics including Python, Cloud Computing, Fog Computing and Deep Learning. I love to use Linux based operating systems.
How to Install Latest Python on Linux Mint 21
Python is a user-friendly high-level and object-oriented programming language that can be easily interpreted. This general-purpose language is famous among users for simple coding projects to complex scripts including Artificial Intelligence and machine learning scripts. It has easily understandable syntax for coding even for the beginners.
Although it is easy to understand, it can perform complex algorithms and can handle huge amounts of data. Python language was designed in a way that it can be extended by adding more modules to the existing ones.
How to Install Latest Python on Linux Mint 21
The latest version of Python can be installed via an external PPA repository. For this, few steps should be followed carefully:
Open the terminal and update apt packages using command:
Execute the mentioned command to install prerequisite dependencies of Python:
Next step it to add PPA repository to the Linux Mint base repository (as it is external repository, so we need to add it first):
As all the dependencies and external repository are installed on Linux Mint 21. Now we can download Python on system by running the following command:
Use the version command to verify if python is installed or not:
How to Uninstall Python from Linux Mint 21
To remove Python from Linux Mint 21 system, the following would be use:
As we have added a PPA repository to the system before downloading Python. So, you can also remove it from system:
Conclusion
This article has focused on how to install an updated version of Python on Linux Mint 21. Python is a highly recommended interpreted language used for various purposes. It can create small projects to large scripts like machine learning and AI with understandable syntax. It was designed in a way that it can be extended by adding more modules to the existing ones.
About the author
Syeda Wardah Batool
I am a Software Engineer Graduate and Self Motivated Linux writer. I also love to read latest Linux books. Moreover, in my free time, i love to read books on Personal development.
Как установить Python 3.9 на Linux Mint 20
В этом руководстве мы покажем вам, как установить Python 3.9 на Linux Mint 20. Для тех из вас, кто не знал, Python — очень мощный язык программирования высокого уровня, который широко используется в современной разработке приложений. Программы на Python удивительно легко писать по сравнению с другими языками программирования. Репозитории Linux Mint 10 по умолчанию поставляются с Python 3.7. Недавно выпущен Python 3.9 с множеством обновлений.
В этой статье предполагается, что у вас есть хотя бы базовые знания Linux, вы знаете, как использовать оболочку, и, что наиболее важно, вы размещаете свой сайт на собственном VPS. Установка довольно проста и предполагает, что вы работаете с учетной записью root, в противном случае вам может потребоваться добавить ‘ sudo ‘ к командам для получения привилегий root. Я покажу вам пошаговую установку Python 3.9 на Linux Mint 20 (Ульяна).
Установите Python 3.9 на Linux Mint 20 Ulyana
Шаг 1. Перед запуском приведенного ниже руководства важно убедиться, что ваша система обновлена, выполнив следующие apt команды в терминале:
sudo apt update sudo apt install wget build-essential software-properties-common
Шаг 2. Установка Python 3.9 на Linux Mint 20.
Последние пакеты Python для Linux Mint доступны в deadsnakes репозитории PPA. Теперь мы добавляем репозиторий в нашу систему, выполнив следующие команды:
sudo add-apt-repository ppa:deadsnakes/ppa
После добавления репозитория начните установку Python 3.9 на Linux Mint:
sudo apt update sudo apt install python3.9
На этом этапе вы успешно установили Python 3.9 на Linux Mint 20. Теперь мы подтверждаем версию Python, используя следующую команду:
Поздравляю! Вы успешно установили Python . Благодарим за использование этого руководства для установки последней версии Python 3.9 в системе Linux Mint. Для получения дополнительной помощи или полезной информации мы рекомендуем вам посетить официальный сайт Python .