Python is a popular programming language at the present time due to its speed, portability of programs written in it, and a relatively low entry threshold for novice developers. The material below will describe the process of upgrading to version 3.10.9 of this language packages on a host running Debian OS.
Updating the system software of the operating system
We will execute all commands as the root user, for this we execute: sudo -i First of all, let's update the OS itself:
After the OS update is complete, let's look at the current available language support libraries:
Install dependent software, compile
Download the actual file, unpack it to an arbitrary location:
Moving to location:
Then we compile:
And then install:
Check if the update is correct
Insert this:
You can also check by creating a simple script and running it:
Let's make it executable:
Let's paste the contents into this file :
And let's run:
As a result, a message will be displayed on the screen.
Removing temporary files
If there is no need for previously downloaded archive files, they can be deleted as follows:
Outcome
Now ready to use the updated version of Python on the server.