---
title: 'How to install Python 3.10 on CentOS 7 | Zomro'
description: 'Python is one of the most popular programming languages,CentOS, a popular server Linux distribution. In the article on how to install Python 3.10 on CentOS 7'
image: 'https://dx86q6oq7ry0e.cloudfront.net/uploads/media/blog/a48%40server-panel.net/2023/09/01/01_Y7YDfhw.png'
---

![opened image]()

  * [Zomro](https://zomro.com/)
  * [FAQ](https://zomro.com/blog/faq/)
  * How to install Python 3.10 on CentOS 7 



# How to install Python 3.10 on CentOS 7

31-08-2023

Python — one of the most popular programming languages used in web development, data analysis, artificial intelligence, and much more. CentOS, a popular Linux server distribution, is often used in corporate environments. This article will show you how to install Python 3.10 on CentOS 7.

## **Step 1: Update CentOS 7**

Before installing new software, it is recommended to update system packages to the latest versions.

To update your CentOS system, execute:
    
    
     
    
    
    sudo yum update -y

After the update is complete, reboot the system:
    
    
    
     
    
    
    sudo reboot

## **Step 2: Install necessary development tools**

Install the necessary development tools to build Python 3.10 on CentOS 7:
    
    
     
    
    
    sudo yum groupinstall "Development Tools" -y sudo yum install openssl-devel libffi-devel bzip2-devel -y

Check the availability of gcc:
    
    
     
    
    
    gcc --version

![How to install Python 3.10 on CentOS 7 - 1](https://dx86q6oq7ry0e.cloudfront.net/uploads/media/blog/a48%40server-panel.net/2023/09/01/01_Y7YDfhw.png)

## **Step 3: Download the Python 3.10 archive**

First, install the wget command:
    
    
    sudo yum install wget -y

Now download the Python 3.10 archive:
    
    
     
    
    
    wget https://www.python.org/ftp/python/3.10.0/Python-3.10.0.tgz

![How to install Python 3.10 on CentOS 7 - 2](https://dx86q6oq7ry0e.cloudfront.net/uploads/media/blog/a48%40server-panel.net/2023/09/01/02_c6GoPpp.png)

Extract the archive file:
    
    
     
    
    
    tar xvf Python-3.10.0.tgz

Navigate to the created folder:
    
    
     
    
    
    cd Python-3.10.0

## **Step 4: Install Python 3.10 on CentOS 7**

To start the Python installation, execute:
    
    
    ./configure --enable-optimizations 
    sudo make altinstall
    
    
    
     After a successful installation, check the Python version:
    
    
    python3.10 --version
    
    
     

![How to install Python 3.10 on CentOS 7 - 3](https://dx86q6oq7ry0e.cloudfront.net/uploads/media/blog/a48%40server-panel.net/2023/09/01/03_tboOM8L.png)

Also, ensure the availability of pip3.10:
    
    
    pip3.10 --version

![How to install Python 3.10 on CentOS 7 - 4](https://dx86q6oq7ry0e.cloudfront.net/uploads/media/blog/a48%40server-panel.net/2023/09/01/04_TnP42bO.png)

### **Installing Python modules on CentOS 7**

Python modules extend the functionality of the language. The Python package manager (PIP) can be used to install them. If PIP is not installed:
    
    
     
    
    
    sudo yum install python3-pip

To install a specific module:
    
    
    sudo pip install module-name

For example, to install the cython module:
    
    
    
     
    
    
    python3 -m pip install cython

![How to install Python 3.10 on CentOS 7 - 5](https://dx86q6oq7ry0e.cloudfront.net/uploads/media/blog/a48%40server-panel.net/2023/09/01/05_bgmqe28.png)

To see the list of installed packages:
    
    
    
     
    
    
    pip3.10 list

![How to install Python 3.10 on CentOS 7 - 6](https://dx86q6oq7ry0e.cloudfront.net/uploads/media/blog/a48%40server-panel.net/2023/09/01/06_W8XuwsT.png)

Conclusion: We hope this guide on installing Python 3.10 on CentOS 7 was helpful. Now you are ready to use Python for developing various applications and programs.

We also suggest you other useful articles:

  * [Как установить Python 3.10 на Ubuntu 20.04](https://zomro.com/blog/faq/299-kak-ustanovit-python-310-na-ubuntu-2004)​​​​​​​
  * [Как установить Python 3.12 на Ubuntu 22.04](https://zomro.com/rus/blog/faq/475-how-to-install-python-312-on-ubuntu-2204)
  * [Установка Python 3.11 на Ubuntu 22.04](https://zomro.com/rus/blog/faq/473-installing-python-311-on-ubuntu-2204)



Similar articles:

[Databases in cPanel](https://zomro.com/blog/faq/178-bazy-dannyh-v-cpanel) [Service availability check via MTR](https://zomro.com/blog/faq/257-proverka-dostupnosti-uslugi-cherez-mtr) [PHP System Garbage Collector on Linux](https://zomro.com/blog/faq/372-php-system-garbage-collector-on-linux) [Configuring FastCGI Microcache in Nginx PHP-FPM](https://zomro.com/blog/faq/227-nastrojka-fastcgi-microcache-v-nginx-php-fpm) [Create an FTP user in Hestia CP and ISPmanager](https://zomro.com/blog/faq/686-create-an-ftp-user-in-hestia-cp-and-isp-manager)

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