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