![]() We can also install the Python modules from the following link: Ĭlick on the link above and whichever module you want to install, insert in the following command: $ python3.9 -m pip install ![]() To verify the installation type the following command: $ python3.9 -version You will get the following message at the end of the output of the above command: If you have successfully installed Python then your output will look like this after the above command: For this purpose type the following command in your Terminal: $ sudo make altinstall The next step is now to start the python build process. For this purpose type the following command in your terminal: $. First we change the directory with the following command:Īfter this, we will run the configuration command. We can extract it with the following command: $ tar xvf Python-3.9.6.tgzĪfter successfully extracting the downloaded file, let’s change to the working directory. ![]() You will find it on the following link: Īfter this type the following command by editing the version in the command: $ wget Īfter this we have to extract the file that was downloaded. Next step is to visit the Python official page and extract from there the version 3.9. Use the following command: $ sudo apt install wget software-properties-common build-essential libnss3-dev zlib1g-dev libgdbm-dev libncurses5-dev libssl-dev libffi-dev libreadline-dev libsqlite3-dev libbz2-dev For this purpose, we have to install the dependency packages. Now comes the part where we start working on the installation of Python 3.9. Now that we have successfully upgraded our system, let’s restart it with the following command: $ sudo reboot However, in my case it wasn’t necessary as you can see all the packages are up to date. ![]() If there are some packages that need to be upgraded then type the following command: $ sudo apt upgrade For this purpose type the following command: $ sudo apt update ![]() The first step in installing Python 3.9 in our Debian 11 is to update the apt cache index. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |