
Once the build process has been completed, install the Python using the following command: make altinstall Note: Replace 2 with the number of cores in your processor. Now, build Python 3.9 using the following command: make -j 2 Next, change the directory to the extracted directory and configure it with the following command: cd Python-3.9.5 Once the download is completed, extract the downloaded file with the following command: tar -xvzf Python-3.9.5.tgz So you will need to compile it from the source.įirst, download the Python 3.9 source using the following command: wget Install Python 3.9īy default, Python version 3.9 is not included in the Debian 10 default repository. You can install all the required dependencies using the following command: apt-get install build-essential zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libsqlite3-dev libreadline-dev libffi-dev curl libbz2-dev -yĪfter installing all the dependencies, you can proceed to install Python 3.9. Next, you will need to install some required dependencies in order to compile Python from the source. You can do this by running the following commands: apt-get update -yĪpt-get upgrade -y Install Required Dependencies

Additionally, replace ‘root’ with the username of the admin account if necessary.īefore starting, you have to make sure that all Debian OS packages installed on the server are up to date.



You will need to replace ‘IP_Address’ and ‘Port_number’ with your server’s respective IP address and SSH port number. Log in to the Server & Update the Server OS Packagesįirst, log in to your Debian 10 server via SSH as the root user: ssh -p Port_number Access to the root user account (or access to an admin account with root privileges).A Debian 10 VPS (we’ll be using our SSD 2 VPS plan).Log in to the Server & Update the Server OS Packages.
