Ubuntu16.04 installe python3.6 et passe à la version par défaut (essayez-le vous-même)
1. Étapes d'installation
code afficher comme ci-dessous:
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt-get update
sudo apt-get install python3.6
2. Définir comme version par défaut
code afficher comme ci-dessous:
sudo update-alternatives --install /usr/bin/python python /usr/bin/python2.7 1
sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.6 2
sudo update-alternatives --config python
[python3.6对应的序号]+Enter
3. Installez le pip correspondant pour python
code afficher comme ci-dessous:
curl https://bootstrap.pypa.io/ez_setup.py -o - | python3.6 && python3.6 -m easy_install pip
4. Afficher la version
code afficher comme ci-dessous:
python