Fixed with compiling python from source + adding the usr/local/bin to PATH and updating alternatives for python.
Answer from MIku on askubuntu.comadd 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
[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
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
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
Videos
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
Top answer 1 of 2
2
I'm also using the deadsnakes PPA. Every version is installed separately, so you can switch versions on the fly. So to use any version installed from deadsnakes, you have to call it explicitely.
Copy$ python3.10 --version
Python 3.10.4
2 of 2
2
You have to use update-alternatives, following such approach https://linuxconfig.org/how-to-change-from-default-to-alternative-python-version-on-debian-linux
You'll be able to choose more conveniently which python version you want to use.
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.
UbuntuHandbook
ubuntuhandbook.org › home › howtos › how to compile & install python 3.11/3.10 from source in ubuntu
How to Compile & Install Python 3.11/3.10 from Source in Ubuntu | UbuntuHandbook
This simple tutorial shows how to compile and install Python 3.11, Python 3.10, or other certain Python version in Ubuntu.
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....
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
