![Duck do go](https://cdn1.cdnme.se/5447227/9-3/6_64e61dfae087c31b411cc5f3.png)
![update python debian update python debian](https://cdn.discordapp.com/attachments/380506502772817924/515978033882988544/image0.png)
So to install latest packages, you need to compile it from source code. Libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev libffi-dev zlib1g-dev Installing Python 3.9 on DebianĪs you know, the default apt repositories contains Python 3.5 only. sudo apt install wget build-essential libreadline-gplv2-dev libncursesw5-dev \ sudo apt update & sudo apt upgradeĪfter that, install belwo packages on your system, which is required for the installation of Python 3.9 from source code. After login, update the current packages on your system to update packages. Prerequisitesįirstly, login to your Debian 9 system with sudo user. This tutorial will describe you to how to install Python 3.9 on Debian 9 Stretch Linux system. If you still need to install Python 3.9 on Debian 9, Go ahead with this tutorial.
![update python debian update python debian](https://www.poftut.com/wp-content/uploads/2019/09/img_5d870fc0611ef.png)
So you can install Python 3.5 directly from the default apt repositories using command apt install python3.
![update python debian update python debian](https://i.ibb.co/qYTcmzW/debian-buster-10-applications.png)
The Debian 9 stretch comes with default Python 2.7 and 3.5.
![Duck do go](https://cdn1.cdnme.se/5447227/9-3/6_64e61dfae087c31b411cc5f3.png)