Fixed with compiling python from source + adding the usr/local/bin to PATH and updating alternatives for python.

Answer from MIku on askubuntu.com
🌐
LinuxCapable
linuxcapable.com › home › ubuntu › how to install python 3.10 on ubuntu 26.04, 24.04 and 22.04
How to Install Python 3.10 on Ubuntu 26.04, 24.04 and 22.04 - LinuxCapable
May 11, 2026 - Install Python 3.10 on Ubuntu 26.04, 24.04 and 22.04 via official repos, Deadsnakes PPA or source. Covers pip, venv, troubleshooting.
Discussions

add python 3.10 on ubuntu - Stack Overflow
I'm just started using ubuntu and tried to upgrade python from 3.8.10 -> 3.10.4 in my venv with the following commands: sudo apt update && sudo apt upgrade -y sudo apt install software- More on stackoverflow.com
🌐 stackoverflow.com
[Ubuntu/Linux, default python 3.10.4] best way to install Python 3.8 and create venv with it?
i have used conda to generate python2+ envs under python3+ so it should be able to handle 3.8 from 3.10 https://i.imgur.com/AQ3kBh4.png https://docs.conda.io/projects/conda/en/4.6.0/_downloads/52a95608c49671267e40c689e0bc00ca/conda-cheatsheet.pdf More on reddit.com
🌐 r/learnpython
7
1
June 13, 2022
Will Ubuntu 22.10 have Python 3.10?
Feature Freeze was August 19th, so it's way too late for that if you did in fact mean 21.10 :) More on reddit.com
🌐 r/Ubuntu
7
5
October 5, 2021
How to update to Python 3.10 without bricking the OS?
Are you certain you need python 3.10? Try to keep your code backwards compatible upto 3.6 Anyway, no you can use python virtual environments to use 3.10 3.8 is the system required version More on reddit.com
🌐 r/Ubuntu
6
4
February 12, 2022
🌐
GitHub
gist.github.com › stas00 › d6851b7dc631c44fa273873d1332dc1e
Install Python 3.10.x on Ubuntu 20.04 · GitHub
sudo apt install python3.10 python3.10-venv python3.10-dev python3 --version · You will see previous of Python. At the writing time Python 3.8.10
🌐
GitHub
gist.github.com › rutcreate › c0041e842f858ceb455b748809763ddb
Install Python 3.10.x on Ubuntu 20.04 - Gist - GitHub
apt-get update apt-get install -y --no-install-recommends \ build-essential \ curl \ wget \ libssl-dev \ zlib1g-dev \ libncurses5-dev \ libncursesw5-dev \ libreadline-dev \ libffi-dev \ libsqlite3-dev \ libbz2-dev \ liblzma-dev \ tk-dev \ uuid-dev cd /usr/src curl -O https://www.python.org/ftp/python/3.10.15/Python-3.10.15.tgz tar -xf Python-3.10.15.tgz cd Python-3.10.15 ./configure --enable-optimizations --enable-shared --with-ensurepip=install make -j"$(nproc)" make altinstall ldconfig update-alternatives --install /usr/bin/python3 python3 /usr/local/bin/python3.10 1 update-alternatives --set python3 /usr/local/bin/python3.10
🌐
ComputingForGeeks
computingforgeeks.com › home › how to install python 3.10 on ubuntu 22.04|20.04|18.04
How To Install Python 3.10 on Ubuntu 22.04|20.04|18.04 [Guide]
March 21, 2026 - Step-by-step guide to install Python 3.10 on Ubuntu 22.04|20.04|18.04. Includes commands, verification, and troubleshooting.
🌐
DebugPoint
debugpoint.com › home › apps › how to install python 3.10 in ubuntu and other related linux
How to Install Python 3.10 in Ubuntu and Other Related Linux
October 22, 2022 - Mostly those don’t support 3.10 by default. Open a terminal prompt and add the following PPA. ... Refresh the cache using the below command. ... And install Python 3.10 using the below command.
Find elsewhere
🌐
TecAdmin
tecadmin.net › how-to-install-python-3-10-on-ubuntu-debian-linuxmint
How To Install Python 3.10 on Ubuntu, Debian & Mint
April 26, 2025 - In this tutorial, you have learned to install Python 3.10 on Ubuntu, Debian, and LinuxMint systems using source code.
🌐
LinuxShout
linux.how2shout.com › home › how to install python 3.10 on ubuntu (24.04, 22.04, 20.04) – step-by-step guide
How to Install Python 3.10 on Ubuntu (24.04, 22.04, 20.04) – Step-by-Step Guide
February 23, 2025 - On your Ubuntu command terminal, follow this: sudo apt update sudo apt install build-essential zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libreadline-dev libffi-dev curl · After satisfying the tools requirement, we also need ...
🌐
Medium
celikmustafa89.medium.com › how-to-install-python3-10-on-ubuntu-20-04-lts-b4bbc4a11f8e
How to install python3.10 on ubuntu 20.04 LTS | by Mustafa Celik | Medium
August 7, 2023 - learn how to install Python 3.10 on your Ubuntu Server with this comprehensive step-by-step guide. Follow easy commands and code snippets to set up the latest python version safely and efficiently. Boost your development environment and take advantage of Python's cutting-edge features.
🌐
Tutor Python
tutorpython.com › install-python-3-10-on-ubuntu-22-04
Easily install Python 3.10 on Ubuntu 22.04 - Tutor Python
September 28, 2024 - One of the most convenient ways to install Python 3.10 on Ubuntu 22.04 is by using the deadsnakes PPA (Personal Package Archive).
🌐
AliTech
alitech.io › blog › how-to-install-python-3-10-ubuntu
How to Install Python 3.10 on Ubuntu 20.04 & Ubuntu 18.04
June 24, 2024 - sudo apt install wget build-essential libreadline-gplv2-dev libncursesw5-dev \ libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev libffi-dev zlib1g-dev · Download the archive from Python’s official site: wget https://www.python.org/ftp/python/3.10.0/Python-3.10.0.tgz
🌐
CrownCloud Wiki
wiki.crowncloud.net
CrownCloud Wiki - How To Install Python 3 10 On Ubuntu 20 04=
cd Python-3.10.11 ./configure ... and the number 4 represents the number of CPU cores. ... Make install The default Python installation is /usr/bin....
🌐
Zomro
zomro.com › blog › faq › 299-kak-ustanovit-python-310-na-ubuntu-2004
How to Install Python 3.10 on Ubuntu 20.04 | Zomro
January 31, 2023 - In this tutorial, we will look at how to install Python 3.10 on Ubuntu 20.04 or 18.04 via a ready-made repository, and install extensions/modules.
🌐
LinuxBuzz
linuxbuzz.com › home › how to's › a quick guide on how to install python 3 on ubuntu 24.04
A Quick Guide on How to Install Python 3 on Ubuntu 24.04
July 22, 2024 - $ sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.10 10 $ sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.12 20 · To select the default Python version, run the following command: ... You’ll ...
🌐
UbuntuHandbook
ubuntuhandbook.org › home › howtos › how to install python 3.10 final in ubuntu 20.04, ubuntu 18.04
How to Install Python 3.10 Final in Ubuntu 20.04, Ubuntu 18.04 | UbuntuHandbook
April 24, 2024 - You can make it link to python3.10, however some apps, e.g., Gnome-Terminal, will refuse to run. To do so, firstly check the default python3 version via command: ... It’s python3.8 in Ubuntu 20.04, and python3.6 (maybe, I don’t remember) in Ubuntu 18.04. Secondly, add the two versions as alternatives to Python3 (replace python3.8 with python3.6 for 18.04): sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.8 1
🌐
codingBites
codingbites.info › installing-python-310-pip-and-venv-on-ubuntu
How Do I Install Python 3.10 with a venv on Ubuntu? Answered.
June 23, 2023 - Step-by-step guide on installing Python 3.10, Pip, and Venv on Ubuntu. Learn how to set up your virtual python environment.