---
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.

ZOMRO / contact form

Need help from a system administrator? 

Describe the issue and we will get back to you within 15 minutes.

Your name 

Your email 

Phone 

Describe the problem 

LEAVE A REQUEST →  [ ![](/static/site/imagesNew/svg/telegram-btn-icon.svg?v=1793704481) Message us on Telegram ](https://t.me/zomro_sysadmin)

You can find the full list of services and prices on the page [ Server administration and maintenance services. ](/paid-support-services/server-management-services)

## **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:

[How to install PostgreSQL and pgAdmin in Docker](https://zomro.com/blog/faq/283-kak-ustanovit-postgresql-i-pgadmin-v-docker) [How to view RDP connection logs in Windows Server 2016, 2019](https://zomro.com/blog/faq/277-how-to-view-rdp-connection-logs-in-windows-2016-2019) [External FTP storage: Connect folder to the Windows server.](https://zomro.com/blog/faq/217-vneshnee-ftp-hranilische-podkljuchenie-k-serveru) [How to install Wordpress in Docker-Compose](https://zomro.com/blog/faq/376-how-to-install-wordpress-in-docker-compose) [Adding a database to the VestaCP panel](https://zomro.com/blog/faq/387-adding-a-database-to-the-vestacp-panel)

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

![](/static/site/imagesNew/blogSupport/popup-server.avif?v=1793704481)

ZOMRO / SERVER MANAGEMENT

Need a sysadmin's help? 

Describe the issue and we will get back to you within 15 minutes.

Your name 

Your email 

Phone 

Describe the problem 

LEAVE A REQUEST →  [ ![](/static/site/imagesNew/svg/telegram-btn-icon.svg?v=1793704481) Message us on Telegram ](https://t.me/zomro_sysadmin)

You can find the full list of services and prices on the page [ Server administration and maintenance services. ](/paid-support-services/server-management-services)

Your data has been successfully sent!

Thank you for contacting us. We will get back to you shortly.

Got it! 
