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