GNU/Linux >> Tutoriels Linux >  >> Debian

Installer Python 3 et Python 2 sur Debian 11 Bullseye

Python est un langage polyvalent utilisé pour l’automatisation, le web, l’analyse de données et les scripts.

Installation

sudo apt update

Python 3 et pip3

sudo apt install python3 python3-pip

Python 2

sudo apt install python2
sudo apt install curl
curl https://bootstrap.pypa.io/pip/2.7/get-pip.py --output get-pip.py
sudo python2 get-pip.py

Vérifier les versions

python3 --version
python2 --version
pip3 --version

Définir Python 3 par défaut

ls /usr/bin/python*
nano ~/.bash_profile

Ajoutez :

alias python='/usr/bin/python3.9'
source ~/.bash_profile
python --version

Désinstallation

sudo apt autoremove python3-pip --purge
sudo apt autoremove python2 --purge
sudo apt autoremove python3 --purge
Debian
  1. Installer Firefox sur Debian : ESR et version standard

  2. Installer Django sur Debian 9 avec un environnement virtuel Python

  3. Installer Python 3.8 sur Debian 11 Bullseye depuis les sources

  4. Installer Python 3.9 sur Debian 11 Bullseye et créer un venv

  5. Installer Pip 3 et Pip 2 sur Debian 11 Bullseye

Installer Google Chrome sur Debian 11 Bullseye : dépôt et paquet DEB

Installer Python 3 et Python 2 sur Debian 11 Bullseye

Installer Minikube sur Debian 11 Bullseye

Installer PyCharm sur Debian 11 Bullseye : deux méthodes

Installer Remmina sur Debian 11 Bullseye : 3 méthodes

Installer VSCodium sur Debian 11 Bullseye Linux