

You can change the version, with some other available one, if you want. To set the desired version as the default use the below commands:Īdd the following line. If you have installed both Python 3 & 2 on your Debian 11 or 10 system then the default version will be set to Python 2, hence you can change that to Python 2 if you want.Ĭheck the available python versions on your system: ls /usr/bin/python* Once the installation is completed you can check what are the versions installed exactly for Python 3 and 2 using the below given command: python3.9 -version python2 -version pip -version To install Python 2.7 pip, use the following ones: sudo apt install curl In case you also want Python 2 on your Debian then run the given command: sudo apt install python To install Python 2.7 & Pip on Debian 11 (optional) However, the minimal Debian system users can go for the command given below. sudo apt updateĪlthough if you are using Full-DVD GUI Debian 11 or 10 Desktop, the Python 3.x will already be there on your system.

This rebuilds the system’s repo cache and helps it to recognize the latest versions of packages available to install. We should run the system update command before installing any package on the Linux system. Remove or uninstall Pip & python 2 or 3 from Debian 11 Python 3 or 2 installation on Debian 11 Bullseye Linux 1. usable for the common operating systems.suitable for complex tasks and almost all application problems.good extensibility thanks to a large collection of Python add-on packages.

