

The guide i've been following is from here. It provides bug fixes compared to older versions, and more importantly, it introduces new features and optimizations.I've been trying to install python 3.9 on antiX 19.3. Keeping your Python up-to-date is an important part of the development process. Pip 21.2.3 from /usr/local/lib/python3.9/site-packages/pip (python 3.9) You will see something like this: Python 3.9.6 # update-alternatives -install /usr/bin/pip pip /usr/local/bin/pip3.9 1Ĭheck the current version of Python and pip. Use the name of your new pip executable in the following command. # /usr/local/bin/python3.9 -m pip install -upgrade pipĬheck the name of your new pip executable. Use the name of your new Python executable in the following command. # update-alternatives -install /usr/bin/python python /usr/local/bin/python3.9 1 Replace the two instances of /python3.9 in the following command with the name of your new Python executable.

Set the new Python executable as default. configure -enable-optimizationsĬheck the name of your new Python executable. # tar xzf Python-3.9.6.tgzĬompile the python source code. # wget Įxtract the downloaded python source code archive. Replace the URLs and filenames in this guide with the latest version.ĭownload the latest Python3 source code. Visit Python's Source Code Download page to find the latest gzipped source release. # apt-get install wget build-essential libreadline-gplv2-dev libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev libffi-dev zlib1g-dev liblzma-dev -y Install the required dependencies to compile the Python source code. If your version is older than your application requires, proceed with this guide. PrerequisitesĬheck the installed Python3 version. This article explains how to install the latest version of Python3 from source code on Debian 10.
