Python is one of the most popular programming languages that many Developers use around the globe. In this tutorial we will use a package manager called apt.
Installing Python 3.9 on Debian 10
Install the dependencies necessary to build Python:
sudo apt update
sudo apt install build-essential zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libsqlite3-dev libreadline-dev libffi-dev curl libbz2-devDownload the latest release’s source code with wget:
wget https://www.python.org/ftp/python/3.9.1/Python-3.9.1.tgz
When the download is complete, extract the zipped archive:
tar -xf Python-3.9.1.tgz
Navigate to the Python source directory and execute the configure script:
cd Python-3.9.1
./configure --enable-optimizationsThat's basically it! To check what python version you have do:
python3.9 --version
Thanks for checking out my blog. If this was helpful be sure to like it!
Top comments (0)