After consulting gemini.google.com, I ran this: sudo add-apt-repository ppa:deadsnakes/ppa sudo apt update sudo apt install python3.11 I received message: python3.11 is already the latest version (3.11.9-1+jammy1) however: python3 --version returns: Python 3.10.12 Answer from neil on discuss.python.org
🌐
Python.org
discuss.python.org › python help
Install python 3.11.9 on ubuntu - Python Help - Discussions on Python.org
I have installed guest VM ubuntu-22.04.4-desktop-amd64.iso on a Windows 10 host. In the VM, I have run the following: sudo apt install sudo apt upgrade this: python3 --version returns: Python 3.10.12 When I run: sudo apt install python3 I receive this message: python3 is already at the newest ...
Published   April 16, 2024
🌐
PhoenixNAP
phoenixnap.com › home › kb › sysadmin › how to install python 3 on ubuntu
How to Install Python 3 on Ubuntu | phoenixNAP KB
June 12, 2025 - sudo apt install build-essential zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libreadline-dev libffi-dev wget
People also ask

What is the easiest way to install Python 3 on Ubuntu?

The quickest way is to run sudo apt install python3 in the terminal and let the package manager do the rest.

🌐
ultahost.com
ultahost.com › knowledge-base › install-python-3-ubuntu
How to Install Python 3 on Ubuntu | Ultahost Knowledge Base
Does Ubuntu ship with Python already installed?

Yes, nearly every version of Ubuntu has Python 3 on board from the first boot, though you might later want to upgrade it or grab a special build for your project.

🌐
ultahost.com
ultahost.com › knowledge-base › install-python-3-ubuntu
How to Install Python 3 on Ubuntu | Ultahost Knowledge Base
Can I install multiple Python versions on Ubuntu?

Definitely; you can have Python 3.10, 3.12, and 3.13 all installed at once by using PPAs or compiling manually, then you pick the one you need with update-alternatives or a virtual environment.

🌐
ultahost.com
ultahost.com › knowledge-base › install-python-3-ubuntu
How to Install Python 3 on Ubuntu | Ultahost Knowledge Base
🌐
The Hitchhiker's Guide to Python
docs.python-guide.org › starting › install3 › linux
Installing Python 3 on Linux — The Hitchhiker's Guide to Python
If you’re using another version ...ties-common $ sudo add-apt-repository ppa:deadsnakes/ppa $ sudo apt-get update $ sudo apt-get install python3......
🌐
BitLaunch
bitlaunch.io › blog › how-to-install-python-on-ubuntu
7 Ways to Install and Manage Python and Python3 on Ubuntu
December 17, 2025 - In all likelihood, you'll want to install tools like pip and venv alongside Python to help manage and your versions and virtual environments. To update and install Python, pip, and venv, you can run these commands instead: sudo apt update sudo apt ...
🌐
MakeUseOf
makeuseof.com › home › linux › how to install python in ubuntu [3.12]
How to Install Python in Ubuntu [3.12]
June 30, 2023 - Install the above-mentioned package ... package name with the version of Python you want to install on your computer. sudo apt install python3.3 sudo apt install python3.8 sudo apt install python3.10...
🌐
iO Flood
ioflood.com › blog › easily-install-python-3-in-ubuntu
Easily Install Python 3 in Ubuntu
January 30, 2024 - Continue reading to learn step-by-step how to update and install Python on Ubuntu systems. sudo apt install python3 is the command that will install your OS’s default version of Python 3 in Ubuntu.
Find elsewhere
🌐
UltaHost
ultahost.com › knowledge-base › install-python-3-ubuntu
How to Install Python 3 on Ubuntu | Ultahost Knowledge Base
June 21, 2025 - The quickest way is to run sudo apt install python3 in the terminal and let the package manager do the rest. Open a terminal and type “python3 –version”. If Python is present, you will see the version number.
🌐
Serverspace
serverspace.io › support › help › how-to-install-python-3-on-ubuntu-24-04
How to Install Python 3 on Ubuntu 24.04 ~ Serverspace.io
2 weeks ago - Option 1: Install via apt (default Ubuntu repository) Update the system first: ... This method is simple but may not provide the latest Python version. Option 2: Install a specific version using deadsnakes PPA For newer Python versions: sudo ...
🌐
Cherry Servers
cherryservers.com › home › blog › linux › how to install python3 on ubuntu 22.04 | step-by-step
How to Install Python3 on Ubuntu 22.04 | Cherry Servers
June 7, 2023 - For this guide, we will install Python3.11.4 for demonstration. To get started, update the local package repository. ... Next, install the dependencies required to build and compile Python code, as shown. sudo apt install build-essential software-properties-common libssl-dev libffi-dev python3-dev libgdbm-dev libc6-dev libbz2-dev libsqlite3-dev tk-dev libffi-dev zlib1g-dev -y
🌐
Ubuntu
launchpad.net › ubuntu › jammy › +package › python3-apt
python3-apt : Jammy (22.04) : Ubuntu - Launchpad
The apt_pkg Python 3 interface will provide full access to the internal libapt-pkg structures allowing Python 3 programs to easily perform a variety of functions, such as: . - Access to the APT configuration system - Access to the APT package ...
🌐
GitHub
gist.github.com › rutcreate › c0041e842f858ceb455b748809763ddb
Install Python 3.10.x on Ubuntu 20.04 · GitHub
Here’s an extra tip: if your system's default Python version is 3.9 instead of 3.8, you may encounter errors because the procedure strictly requires Python 3.8. In that case, switch the default Python to version 3.8 or manually edit /usr/bin/add-apt-repository to #!/usr/bin/python3.8 as a work ...
Top answer
1 of 2
87

As the package description you linked to says:

In Ubuntu, all python packages use explicit python3 or python2 interpreter and do not use unversioned /usr/bin/python at all ... No packages may declare dependencies on this package.

So, all official Ubuntu packages will depend explicitly on "python2" or "python3", and invoke the appropriate command. The default "python" command is deliberately undefined so that any scripts referencing it have to be updated to unambiguously depend on one version or the other.

However, users may have code that relies on the "python" command being available, and know that they can safely point it across their whole system to one version or the other. The python-is-python3 package (and its counterpart, python-is-python2) are a convenient way to set up a symlink for this purpose.

Does python-is-python3 really just create a single symlink? It seems odd to introduce a package for such a bare bones purpose.

Linux distributions are extremely complex systems made up of a large number of simple components. The power of package managers comes in their flexibility to do simple things like this in a unified way. For instance, a server setup script might have a long list of apt packages that an application needs to be installed, and can simply include python-is-python3 in that list. Shipping a package for this purpose is considerably simpler than having a user guide explaining how to manage the symlink manually.

Does the same go for pip, i.e. pip instead of pip3?

Apparently not - according to this LaunchPad bug, the python3 package automatically points pip at pip3 anyway.

If you open up the .deb file for the package (I used 7-Zip), you can see that apart from some documentation, it really does just contain one symlink, to be installed at /usr/bin/python, pointing to /usr/bin/python3.

2 of 2
28

In Ubuntu, all python packages use explicit python3 or python2 interpreter and do not use unversioned /usr/bin/python at all. Some third-party code is now predominantly python3 based, yet may use /usr/bin/python.

python-is-python3 is a convenience package which ships a symlink to point the /usr/bin/python interpreter at the current default python3. It may improve compatibility with other modern systems, while breaking some obsolete or third-party software.

python-is-python3 replaces: python, python-is-python2.

I installed python-is-python3 as a convenience package in Ubuntu 20.04, but I later uninstalled it after python2.7 was automatically installed as a dependency of another package.

🌐
bodHOST
bodhost.com › general discussion › how to install python 3 on ubuntu 20.04 or 22.04
How to Install Python 3 on Ubuntu 20.04 or 22.04 | bodHOST
July 18, 2024 - Installing Python on Ubuntu: After adding the PPA repository, you can install all the latest versions of Python on Ubuntu. To check if the version is available, use: sudo apt-cache policy python3.
🌐
Ubuntu
packages.ubuntu.com › focal › python3-apt
Details of package python3-apt in focal
December 9, 2020 - two or more packages specified (python3-apt focal) Content Copyright © 2025 Canonical Ltd.; See license terms. Ubuntu is a trademark of Canonical Ltd. Learn more about this site.
🌐
Ubuntu
launchpad.net › ubuntu › +source › python-apt
python-apt package : Ubuntu - Launchpad
python-apt-common: Python interface to libapt-pkg (locales) python-apt-dev: Python interface to libapt-pkg (development files) python-apt-doc: Python interface to libapt-pkg (API documentation) python3-apt: Python 3 interface to libapt-pkg python3-apt-dbgsym: debug symbols for python3-apt · This package has 26 new bugs and 0 open questions. Maintainer: Ubuntu Developers ·
🌐
DedicatedCore
dedicatedcore.com › home › how to install python 3 on ubuntu 20.04
How to Install Python 3 on Ubuntu 20.04 - DedicatedCore Blog
October 16, 2024 - Do that and let it finish. Update the package listings once more: sudo apt update · You can now start the installation of Python 3.8 with the command: sudo apt install python3.8 ·
🌐
Reddit
reddit.com › r/pythonlearning › correct way to install python 3.12 on ubuntu 24.04 (with pip & venv)?
r/PythonLearning on Reddit: Correct way to install Python 3.12 on Ubuntu 24.04 (with pip & venv)?
May 30, 2025 -

What’s the right way to install Python 3.12 on Ubuntu 24.04, with pip and venv working out of the box?

I tried:

sudo apt install python3.12.3

But it didn’t include pip or venv, and I hit an “externally managed environment” error when using pip in a venv.

Should I be using:

sudo apt install python3-full

or:

sudo apt-get install python3 python3-dev instead?

Just looking for the cleanest, correct way to get a working Python dev setup on this version of Ubuntu — any clarification appreciated.