You should stick with your distros version and only do a manual installation if not possible otherwise. If you really need to do it, have a look here: https://aruljohn.com/blog/install-python-debian/ Answer from sgunb on reddit.com
🌐
The Hitchhiker's Guide to Python
docs.python-guide.org › starting › install3 › linux
Installing Python 3 on Linux — The Hitchhiker's Guide to Python
$ sudo apt-get install software-properties-common $ sudo add-apt-repository ppa:deadsnakes/ppa $ sudo apt-get update $ sudo apt-get install python3.8 · If you are using other Linux distribution, chances are you already have Python 3 pre-installed as well. If not, use your distribution’s package manager.
🌐
IONOS
ionos.com › digital guide › websites › web development › install python
Python installieren und einrichten unter Windows, Linux ...
March 20, 2023 - To do this, open the Windows search function and type “IDLE”. Via the matching search result, you start the IDLE shell and can start programming with Python. ... Are you still looking for the right web address? Find the right domain for your web project with the help of IONOS and benefit from advantages like an SSL / TLS certificate and a mailbox. With Linux distributions, you install Python conveniently via the terminal — if the scripting language is not already installed on the system.
🌐
Ubuntuusers
wiki.ubuntuusers.de › Python
Python › Wiki › ubuntuusers.de
Python ist eine interpretierte, objektorientierte höhere Programmiersprache mit dynamischer Typisierung und Bindung. Sie wurde Anfang der 1990er-Jahre von Guido van Rossum entwickelt. Heute ist Python auf vielen Plattformen 🇬🇧 (z.B. Linux, Unix, OS X, Windows) verfügbar und wird unter Ubuntu für viele zentrale Aufgaben benutzt.
🌐
Pyph
pyph.de › 1 › 1 › index.php
Wie installiere ich Python unter Linux ...?
Anschließend können die entsprechenden Pakete installiert werden: sudo dnf install ffmpeg sudo dnf install portaudio pip install sounddevice · Unter Fedora starten Sie Python mit dem Befehl python. Diese Linux-Distribution basiert auf Ubuntu 18.04.
🌐
DigitalOcean
digitalocean.com › community › tutorials › how-to-install-python-3-and-set-up-a-programming-environment-on-an-ubuntu-20-04-server-de
Installieren von Python 3 und Einrichten einer Programmierumgebung auf einem Ubuntu 20.04-Server | DigitalOcean
April 4, 2022 - In diesem Tutorial richten Sie Ihren Ubuntu 20.04-Server mit einer Python 3-Programmierumgebung ein. Das Programmieren auf einem Server bietet viele Vorteile und fördert die Zusammenarbeit bei Entwicklungsprojekten. Die allgemeinen Grundsätze dieses Tutorials gelten für alle Distributionen von Debian Linux.
🌐
Reddit
reddit.com › r/learnpython › installing python on linux - help?
Python unter Linux installieren – Hilfe? : r/learnpython
May 26, 2024 -

I am a long-time user of Python but I have never understood how to install python "properly" - I tend to figure out some way to get it done when I need to, and then forget all about it. But I want to understand it a bit better because it isn't straightforward in my opinion. I am not considering Pyenv or other such "helper" tools/dependencies - I want to learn how to do this the "official" way. I've looked at the official docs but can't see what I've done incorrectly. The main issue is that at some stage I often find myself wanting a newer version of python than what is provided, and then I end up a bit stuck.

I installed Debian and it came with python3 under my /usr/local/bin directory. There is also a Python installation under /usr/bin/python3.11, which I guess is my system python? I believe I was always interacting with my /usr/local/bin python - not the system python, so that's good. (Also I'm always using virtual environments, so let's not discuss their importance please). That was working fine for me, but now I want to upgrade my version of python and I am facing difficulties.

  • What should I do to upgrade python in an "official" way (i.e. not adding dev repositories like deadsnakes, not using helper tools like Pyenv)?

  • What do I need to do with pip? Currently, the pip command actually points to /usr/bin/python - i have to use pip3* (see below).

  • Can I simply delete the old python and pip versions from /usr/local/bin if I wanted to?

  • How do I ensure that every time I type python3 in the terminal, it grabs the latest one? Do I just ensure it is higher up in my PATH variable?

  • Why is there not one simple way to do this? Obviously everyone has slightly different needs, but I imagine 80% of python users just want to use python and have a reasonable way to upgrade when required without screwing something up in their system.

To explain why I'm asking this now, I installed the python source from the main website yesterday and tried to get it working but something is off. Here's what I did

  • Extracted the Python-3.12.3.tar.xz

  • Moved into the dir and ran ./configure --enable-optimizations --with-ensurepip=install

  • Ran make

  • Ran sudo make install

This worked, but I notice when I run python in the terminal REPL that I can't use the up/down keys to cycle through my command history:

>>> print("hello")
hello
>>> ^[[A

*Also, I notice that I now have pip (/usr/bin/python), pip3, and pip3.12 now, and I am confused about that. Should I alias pip with pip3.12 to prevent interacting with the system python? Should I just delete pip3 and make sure pip3 points to pip3.12?

These issues have convinced me that I've now installed python incorrectly somehow. I found some info about readline but that's deprecated, and I am starting to go down the rabbit hole of running random commands to try and fix things, which is probably going to make things worse.

Find elsewhere
🌐
Opensource.com
opensource.com › article › 20 › 4 › install-python-linux
How to install Python on Linux | Opensource.com
Visit the official Python website and download the latest version of Python 3. After the download is complete, you hav a .tar.xz archive file (a "tarball") containing the source code of Python.
🌐
heise online
heise.de › ratgeber › Python-schnell-einrichten-So-geht-s-auf-Windows-Linux-und-macOS-6355248.html
Python schnell einrichten: So geht's auf Windows, Linux und macOS
February 11, 2022 - Unter Ubuntu etwa bringen Sie die Paketlisten der Repos zunächst mit sudo apt update auf den aktuellen Stand. Mit apt search python3.10 können Sie anschließend nach Installationspaketen zu einer bestimmten Python-Version suchen (in diesem Fall 3.10) und diese mit apt install python3.10 installieren...
🌐
Kinsta®
kinsta.com › home › resource center › blog › python › how to install python on windows, macos, and linux
How To Install Python on Windows, macOS, and Linux - Kinsta®
November 17, 2025 - That’s why today, this guide explains the installation process for Python on various operating systems like Windows, macOS, and Linux.
🌐
Ubuntuusers
wiki.ubuntuusers.de › Python › manuelle_Installation
manuelle Installation › Python › Wiki › ubuntuusers.de
Python in der Version 3.x, werden nur bei den aktuellen Ubuntu-Desktop-Versionen automatisch installiert. Benötigt man jedoch eine neuere oder ältere Version (z.B. zu Testzwecken), lässt sich diese nicht über die offiziellen Paketquellen installieren. Dies ist aber dennoch durch eine manuelle ...
🌐
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 - Follow our step-by-step installation guide and install Python 3 on Ubuntu using APT, PPA, or from the source code.
🌐
Python Land
python.land › home › install python: detailed instructions for window, mac, and linux
Install Python: Detailed Instructions for Window, Mac, and Linux • Python Land Tutorial
October 1, 2024 - Learn how to install Python on Windows, MacOS, and Linux. We show you multiple installation options, so you can choose what suits you best.
🌐
Python
python.org › downloads
Download Python | Python.org
Looking for Python with a different OS? Python for Windows, Linux/Unix, macOS, Android, other · Want to help test development versions of Python 3.15? Pre-releases, Docker images · Join the official Python Developers Survey 2026 and have a chance to win a prize 📝🎁 Take the 2026 survey!
🌐
HubSpot
blog.hubspot.de › home › de | website › quellcode: begriffserklärung, aufbau und erstellung
Python installieren: Anleitung für Windows, Mac und Linux
June 13, 2023 - Im Gegensatz zu HTML beschreibt Java keine textuellen Inhalte fürs Web, sondern Anweisungen für Maschinen. Darum spricht man auch von einer klassischen Programmiersprache. Weitere Beispiele dafür wären etwa Python, C, C++ oder Pascal.
🌐
GeeksforGeeks
geeksforgeeks.org › python › how-to-install-python-on-linux
How to Install Python on Linux - GeeksforGeeks
July 12, 2025 - Tip: Always prioritize Python 3 for new projects. Before starting the installation process, ensure you have: Root Access: Sudo privileges to install software. Terminal Access: Familiarity with the command line. Internet Connection: Active internet access for downloading packages. Disk Space: At least 200MB available. Command-Line Basics: Understanding of simple terminal commands. Many Linux distributions come with Python pre-installed.
🌐
Linux-Bibel
linux-bibel.at › index.php › 2023 › 09 › 09 › python-software-unter-linux-aus-dem-python-package-index-installieren
Python-Software unter Linux aus dem Python Package Index installieren – Linux-Bibel
Welche Software es gibt, zeigt sich im Python Package Index. ... Unter auf Debian basierenden Linux-Distributionen installieren Sie ganz einfach über die Paket-Verwaltung das Paket „python3-pip“ – diese Software dient zur Verwaltung der Python-Software, unter anderen Distributionen wird ...
🌐
Computerwoche
computerwoche.de › home › karriere › ingenieur
Tutorial: Python richtig installieren | Computerwoche
April 1, 2024 - Das ist im Vergleich zu NuGet in der Regel die bessere Option, weil Ihr System dabei auf eine vorhandene Python-Laufzeitumgebung überprüft wird. Allerdings sollten Sie vermeiden, reguläre Installationen und solche mit Chocolatey auf einem System zu vermischen. Weil Linux-Distributionen teilweise erhebliche Unterschiede aufweisen, sollten Sie bei der Installation von Python unter dem Open-Source-Betriebssystem auch auf den Package Manager der jeweiligen Distribution zurückgreifen.
🌐
CodeKiste
codekiste.com › python-kinder › python-installieren
Python installieren und einrichten: So klappt’s auf Windows, Mac und Linux – CodeKiste
Für Ubuntu und ähnliche Systeme tippst du: "sudo apt update" und danach "sudo apt install python3". Das System fragt nach deinem Passwort und installiert Python automatisch. Der Vorgang dauert wenige Minuten. Jede Linux-Version hat eigene Befehle. Für Fedora nutzt du "sudo dnf install python3", ...
🌐
Upgrad
upgrad.com › home › tutorials › software & tech › install python on linux
Python Installation Guide for Linux Users
November 12, 2024 - Learn how to install Python on Linux effortlessly. Step into the world of Python programming on your Linux system.