Installing Python 3.10 on Ubuntu 20.04|18.04

Photo by Gabriel Heinzer on Unsplash

Installing Python 3.10 on Ubuntu 20.04|18.04

Theo van der Sluijs
·Dec 3, 2021·

2 min read

Subscribe to my newsletter and never miss my upcoming articles

Play this article

Ubuntu is one of the most used linux distro's out there and python is very easy to install with this install Guide

As written on Wikipedia: Ubuntu is built on Debian's architecture and infrastructure, and comprises Linux server, desktop and discontinued phone and tablet operating system versions.

So, Ubuntu is a Linux-based operating system. You can run Ubuntu on many devices like your computer, your smartphone and it even runs on Network servers. Ubuntu is developed by Cononical Ltd and is based in the UK. Ubuntu and Ubuntu software are based on the principles of Open Source software development. So it's free to use and even change.

In short Ubuntu is great on many devices and it runs great together with Python.

Python 3.10 on Ubuntu

Python is an object-oriented, high-level programming language. Python 3.10 is the latest stable version available for productions environments. There is a 3.11 version but it's still in Beta.

Most of the Debian-based Linux distribution, as Ubuntu, includes older versions of Python in software repositories. Also, the Debian packages are not available for all distributions. This tutorial has been tested on Ubuntu 20.04 Linux system, It's also tested on the latest Raspberry Pi OS.

You really do not need any Prerequisites other than SSH access or to be able to open a terminal on your Ubuntu system.

With below guide you can install Python 3.10 on Ubuntu, Debian, and LinuxMint.

Step by Step Python 3.10 installation on Ubuntu Guide

As you might have seen, I have written a lot of articles on Python installing on Raspberry Pi's. You can find other articles on installing Python 3.8, Python 3.9 and Python 3.9.7 on a Raspberry Pi.

For making things easy I have created a single line scripts for installing any Python version on Ubuntu.

And here it is!

wget -qO - https://raw.githubusercontent.com/tvdsluijs/sh-python-installer/main/python.sh | sudo bash -s 3.10.0

That’s it!!

One simple Line to install Python 3.10.0 on your Ubuntu environment. It will work for Ubuntu 20.04, 18.04, 16.04

So, open a terminal go to your Ubuntu Pi with SSH and run the single line on it.

Instelling Python 3.10 on a Raspberry Pi or Ubuntu

When running my script it’s time to get a cup of coffee, as it takes some time. Oh and don’t forget to ☕ buy a cup of coffee ☕ for me for all my hard work! Thank you!!

Did you find this article valuable?

Support Theo van der Sluijs by becoming a sponsor. Any amount is appreciated!

See recent sponsors Learn more about Hashnode Sponsors
 
Share this