
We can update the package list by running the command below. Before we install Python on CentOS, the first thing we must do is update yums package list. I was expecting when I installed Python 3.10.6 that I would just enter python3 at the terminal to open it up and that Debian would understand that this new version superseded the old version. Download Python Download the latest version for Windows Download Python 3.11. Installing Python to CentOS is a reasonably straightforward process and is much like installing Python on Debian based systems or Fedora.


But to open Python 3.9.2 I have to enter python3 at the terminal. I don't understand why Python 3.10.6 wasn't installed to this same /usr/bin/ folder.Īlso, in order to open Python 3.10.6 I have to enter the command python3.10 at the terminal. How do I make Python 3.10.6 the default version instead of 3.9.2 so that both pip and IDLE work with that version? For some reason it appears that Python 3.10.6 installed to /home/username/Python-3.10.6/ whereas Python 3.9.2 appears installed at /usr/bin/python3/. It looks like Debian is now shipping python-is-python3 themselves (in Debian 11 and later), so the premise of the question no longer holds and you can just: sudo apt update & sudo apt install python-is-python3. But unfortunately though when I then subsequently installed pip and IDLE, they both still associate with Python 3.9.2. I just fresh installed Debian 11 that comes with Python 3.9.2, and I wanted to install the latest version of Python namely 3.10.6, so I followed the instructions provided at: Extensions and modules are essential on Python as they add functionality to the Python application.
