---
title: 'How to Install Python 3.10 on Ubuntu 20.04 | Zomro'
description: 'In this tutorial, we''ll look at how to install Python 3.10 on Ubuntu 20.04 or 18.04 via a prebuilt repository and install extensions/modules.'
image: 'https://dx86q6oq7ry0e.cloudfront.net/uploads/media/blog/a48@server-panel.net/2023/01/01/1675168587_1.png'
---

![opened image]()

  * [Zomro](https://zomro.com/)
  * [FAQ](https://zomro.com/blog/faq/)
  * How to Install Python 3.10 on Ubuntu 20.04 



# How to Install Python 3.10 on Ubuntu 20.04

31-01-2023

In this tutorial, we will look at how to install **Python 3.10** on Ubuntu 20.04 or 18.04 via a ready-made repository, and install extensions/modules.  
  
Before installing any software, you should update repositories and install the latest versions of packages.   

    
    
     apt update && sudo apt upgrade -y 

## **Install Python 3.10 from PPA repository**

To install Python 3.10 on Ubuntu 20.04 using a repository you need to add PPA repository from deadsnakes. Indeed this makes it very easy to install Python on Ubuntu and get constant updates, bug fixes and security updates.   
  
Install the necessary dependencies to add the repository.   

    
    
     apt install software-properties-common -y 

  
Now let's add the PPA repository from deadsnakes:
    
    
     add-apt-repository ppa:deadsnakes/ppa 

  
Press Enter.  
  
![How to Install Python 3.10 on Ubuntu 20.04 - 1](https://dx86q6oq7ry0e.cloudfront.net/uploads/media/blog/a48@server-panel.net/2023/01/01/1675168587_1.png)  


Now that the deadsnakes repository has been added to your Ubuntu system, we can install Python 3.10 using the command below.
    
    
     apt install python3.10

  
![How to Install Python 3.10 on Ubuntu 20.04 - 2](https://dx86q6oq7ry0e.cloudfront.net/uploads/media/blog/a48@server-panel.net/2023/01/01/1675168683_2.png)  


After installation, check the installed version of Python.
    
    
     python3.10 --version

  
![How to Install Python 3.10 on Ubuntu 20.04 - 3](https://dx86q6oq7ry0e.cloudfront.net/uploads/media/blog/a48@server-panel.net/2023/01/01/1675168705_3.png)

## **Install Python modules in Ubuntu 20.04**

  
Modules and extensions are useful in Python because they add functionality to it. They can be installed using **Python Package Manager** (PIP).   
  
  
Let's install it:
    
    
     apt install python3-pip

  
![How to Install Python 3.10 on Ubuntu 20.04 - 4](https://dx86q6oq7ry0e.cloudfront.net/uploads/media/blog/a48@server-panel.net/2023/01/01/1675168696_4.png)  


Now after installing the package manager, let's install the module we need.   
  
  
For example, to work with Telegram, let's install the following module:
    
    
     pip install python-telegram-bot

  
  
  
![How to Install Python 3.10 on Ubuntu 20.04 - 5](https://dx86q6oq7ry0e.cloudfront.net/uploads/media/blog/a48@server-panel.net/2023/01/01/1675168718_5.png)  


To check/see what packages are installed locally, we can use the following command:
    
    
     pip list

  
Below we can see the output of the command, and the **python-telegram-bot** module we installed:

![How to Install Python 3.10 on Ubuntu 20.04 - 6](https://dx86q6oq7ry0e.cloudfront.net/uploads/blog/a48%40server-panel.net/2023/11/21/image_Zwu8JD5.jpg)

  
Now you can deploy your Python application. In the next article, we will look at [how to install Python 3.10 on Centos 7.](https://zomro.com/rus/blog/faq/294-kak-ustanovit-python-310-na-centos-7)

We also suggest you other useful articles:

  * [How to install Django on CentOS 7: A Step-by-Step Guide](https://zomro.com/blog/faq/444-how-to-install-django-on-centos-7)
  * [How to create a telegram bot for monitoring remote hosts](https://zomro.com/blog/faq/316-kak-sozdat-telegram-bota-dlja-monitoringa-udalennyh-hostov)
  * [How to monitor SSH connections to the server using a telegram bot](https://zomro.com/blog/faq/329-kak-otslezhivat-ssh-podklyucheniya-k-serveru-s-pomoshyu-telegram-bota)



Similar articles:

[Configuring FastCGI Microcache in Nginx PHP-FPM](https://zomro.com/blog/faq/227-nastrojka-fastcgi-microcache-v-nginx-php-fpm) [Changing Priority from IPv6 to IPv4 in Ubuntu and CentOS: A Complete Guide](https://zomro.com/blog/faq/471-changing-priority-from-ipv6-to-ipv4-in-ubuntu-and-centos-a-complete-guide) [How to see whois of a domain](https://zomro.com/blog/faq/395-how-to-see-whois-of-a-domain) [How to upload files to server for Forex?](https://zomro.com/blog/faq/182-kak-zagruzhat-fajly-na-server-dlja-forex) [Understanding DDoS and DoS Attacks: Plain and Simple](https://zomro.com/blog/faq/438-razbiraemsya-v-ddos-i-dos-atakah-prosto-i-ponyatno)

[ Dedicated servers from €88.80/mon ](/dedicated-servers)
