Find the Best Cosmetic Hospitals

Explore trusted cosmetic hospitals and make a confident choice for your transformation.

“Invest in yourself — your confidence is always worth it.”

Explore Cosmetic Hospitals

Start your journey today — compare options in one place.

Python Tutorials: Installing Python 3 on Linux, Centos, Ubuntu & Windows

Python 3 Installation in Ubuntu


$ sudo apt-get install software-properties-common
$ sudo add-apt-repository ppa:deadsnakes/ppa
$ sudo apt-get update
$ sudo apt-get install python3.8
$ python3 --version

Or

$ sudo apt-get install python3.6
$ python3 --versionCode language: JavaScript (javascript)

Default Versions of Python in CentOS


Depending on when you’re reading this or what version you’re using, the version that you have installed by default or the version that’s available in the CentOS repo might be different.

For CentOS 7:

  • Python 2.7.5 is installed by default. That version has reached its EOL years ago, so you should upgrade ASAP.
  • Python 3.6.8 is the latest version available in the CentOS 7 repos. 3.6 reached its EOL in Dec 2021, so you should upgrade ASAP.

For CentOS 8:

  • Python isn’t installed by default.
  • Python 3.9.6 is the latest version available in the CentOS 8 repos. The EOL of Python 3.9.6 is Oct 2026, so you can use that version. To install it, just run yum install python39 and that’s it. If you want to install Python 3.10 or 3.11, follow the tutorial below.

Python 3 Installation in Centos


$ sudo yum install yum-utils
$ sudo yum-builddep python3
$ python3 --version

Installing Python 3.6 on CentOS 7

sudo yum -y install wget make gcc openssl-devel bzip2-devel
cd /tmp/
wget https://www.python.org/ftp/python/3.6.12/Python-3.6.12.tgz
tar xzf Python-3.6.12.tgz
cd Python-3.6.12
./configure --enable-optimizations
sudo make altinstall
sudo ln -sfn /usr/local/bin/python3.6 /usr/bin/python3
sudo ln -sfn /usr/local/bin/python3.6 /usr/bin/python
sudo ln -sfn /usr/local/bin/pip3.6 /usr/bin/pip3
python3.6 -V
pip3.6 -V
$ sudo ln -fs /usr/local/bin/python3.6 /usr/bin/python
$ sudo ln -fs /usr/local/bin/python3.6 /usr/bin/python3Code language: JavaScript (javascript)

Installing Python 3.7 on CentOS 7

sudo yum -y install wget make gcc openssl-devel bzip2-devel
cd /tmp/
wget https://www.python.org/ftp/python/3.7.9/Python-3.7.9.tgz
tar xzf Python-3.7.9.tgz
cd Python-3.7.9
./configure --enable-optimizations
sudo make altinstall
sudo ln -sfn /usr/local/bin/python3.7 /usr/bin/python3.7
sudo ln -sfn /usr/local/bin/pip3.7 /usr/bin/pip3.7
python3.7 -V
pip3.7 -V
$ sudo ln -fs /usr/local/bin/python3.7 /usr/bin/python
$ sudo ln -fs /usr/local/bin/python3.7 /usr/bin/python3Code language: JavaScript (javascript)

Installing Python 3.8 on CentOS 7

sudo yum -y install wget make gcc openssl-devel bzip2-devel
cd /tmp/
wget https://www.python.org/ftp/python/3.8.7/Python-3.8.7.tgz
tar xzf Python-3.8.7.tgz
cd Python-3.8.7
./configure --enable-optimizations
sudo make altinstall
sudo ln -sfn /usr/local/bin/python3.8 /usr/bin/python3.8
sudo ln -sfn /usr/local/bin/pip3.8 /usr/bin/pip3.8
python3.8 -V
pip3.8 -V
$ sudo ln -fs /usr/local/bin/python3.8 /usr/bin/python
$ sudo ln -fs /usr/local/bin/python3.8 /usr/bin/python3Code language: JavaScript (javascript)

Installing Python 3.8 on CentOS 7

sudo yum -y install wget make gcc openssl-devel bzip2-devel
cd /tmp/
wget https://www.python.org/ftp/python/3.9.1/Python-3.9.1.tgz
tar xzf Python-3.9.1.tgz
cd Python-3.9.1
./configure --enable-optimizations
sudo make altinstall
sudo ln -sfn /usr/local/bin/python3.9 /usr/bin/python3.9
sudo ln -sfn /usr/local/bin/pip3.9 /usr/bin/pip3.9
python3.9 -V
pip3.9 -V
$ sudo ln -fs /usr/local/bin/python3.9 /usr/bin/python
$ sudo ln -fs /usr/local/bin/python3.9 /usr/bin/python3Code language: JavaScript (javascript)

How to Install Python 3.10 on CentOS

yum update
yum install openssl-devel bzip2-devel libffi-devel
yum groupinstall “Development Tools”
wget https://www.python.org/ftp/python/3.10.2/Python-3.10.2.tgz
tar -xzf Python-3.10.2.tgz
cd Python-3.10.2
./configure –enable-optimizations
make altinstall
python3.10 -V

$ sudo ln -fs /usr/local/bin/python3.10 /usr/bin/python
$ sudo ln -fs /usr/local/bin/python3.10 /usr/bin/python3

How to Install Python 3.10 on CentOS

yum update
yum install openssl-devel bzip2-devel libffi-devel
yum groupinstall “Development Tools”
wget https://www.python.org/ftp/python/3.11.0/Python-3.11.0a4.tgz
tar -xzf Python-3.11.0a4.tgz
cd Python-3.11.0a4
./configure –enable-optimizations
make altinstall
python3.11 -V

$ sudo ln -fs /usr/local/bin/python3.11 /usr/bin/python
$ sudo ln -fs /usr/local/bin/python3.11 /usr/bin/python3

Find Trusted Cardiac Hospitals

Compare heart hospitals by city and services — all in one place.

Explore Hospitals
I’m a DevOps/SRE/DevSecOps/Cloud Expert passionate about sharing knowledge and experiences. I have worked at <a href="https://www.cotocus.com/">Cotocus</a>. I share tech blog at <a href="https://www.devopsschool.com/">DevOps School</a>, travel stories at <a href="https://www.holidaylandmark.com/">Holiday Landmark</a>, stock market tips at <a href="https://www.stocksmantra.in/">Stocks Mantra</a>, health and fitness guidance at <a href="https://www.mymedicplus.com/">My Medic Plus</a>, product reviews at <a href="https://www.truereviewnow.com/">TrueReviewNow</a> , and SEO strategies at <a href="https://www.wizbrand.com/">Wizbrand.</a> Do you want to learn <a href="https://www.quantumuting.com/">Quantum Computing</a>? <strong>Please find my social handles as below;</strong> <a href="https://www.rajeshkumar.xyz/">Rajesh Kumar Personal Website</a> <a href="https://www.youtube.com/TheDevOpsSchool">Rajesh Kumar at YOUTUBE</a> <a href="https://www.instagram.com/rajeshkumarin">Rajesh Kumar at INSTAGRAM</a> <a href="https://x.com/RajeshKumarIn">Rajesh Kumar at X</a> <a href="https://www.facebook.com/RajeshKumarLog">Rajesh Kumar at FACEBOOK</a> <a href="https://www.linkedin.com/in/rajeshkumarin/">Rajesh Kumar at LINKEDIN</a> <a href="https://www.wizbrand.com/rajeshkumar">Rajesh Kumar at WIZBRAND</a> <a href="https://www.rajeshkumar.xyz/dailylogs">Rajesh Kumar DailyLogs</a>

Related Posts

Top 10 AI Privacy Compliance Tools in 2026: Features, Pros, Cons & Comparison

Introduction Artificial Intelligence is powering everything from personalized marketing to autonomous systems. But with great power comes greater responsibility—especially when it comes to privacy compliance. In 2026,…

Read More

Top 10 Banner Design Tools in 2026: Features, Pros, Cons & Comparison

Introduction Banner design is an essential part of digital marketing, whether you’re creating ads for social media, your website, or email campaigns. In 2026, as businesses continue…

Read More

Top 10 AI Background Removal Tools in 2026: Features, Pros, Cons & Comparison

Introduction In 2026, AI background removal tools have become essential for photographers, e-commerce sellers, marketers, and content creators who need polished, professional visuals without the hassle of…

Read More

5 Elements To Craft A Stand-Out Resume For Web Developers

In today’s digital era, your resume isn’t just a document — it’s a reflection of your technical savvy. For ambitious web developers like You, mastering the art…

Read More

Top 10 AI Infographic Creators Tools in 2026: Features, Pros, Cons & Comparison

Introduction In 2026, AI infographic creators have become essential tools for businesses, marketers, educators, and content creators who need to transform complex data into visually compelling stories….

Read More

Top 11 AI Personalized Learning Tools in 2026: Features, Pros, Cons & Comparison

Introduction In 2026, AI personalized learning tools have transformed education and training, tailoring content to individual learner needs with unprecedented precision. These tools leverage machine learning, natural…

Read More
Subscribe
Notify of
guest
2 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments
Snehith J Shiju
Snehith J Shiju
2 years ago

There is an error in your page
In (How to Install Python 3.10 on CentOS) change it to 3.11You have displayed it twice

Alex
Alex
3 years ago

Doesn’t work on CentOS 7.

2
0
Would love your thoughts, please comment.x
()
x