“Setzen Sie Python3.7 als Standard Ubuntu” Code-Antworten

Stellen Sie Python 3 als Standard Ubuntu ein

sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.4 1
sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.6 2
Sjk-Lacoste

Link Python3 mit Python3.7

Damn, Python is used throughout much of Ubuntu for system scripts and software,
and software relies on having Python (and the commands to start Python)
in a certain spot. do back then.

rm /usr/bin/python3 
ln -s /usr/bin/python3.7 /usr/bin/python3 

# create alias in ~/.bash_aliases

alias python3='/usr/bin/python3.7' 
Scripts can then start with something like:

#!/usr/bin/env python3 
Index out of bounds

Setzen Sie Python3.7 als Standard Ubuntu

sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.7 1
Fragile Fish

Stellen Sie Python 3 als Standard Ubuntu ein

sudo update-alternatives --config python
Sjk-Lacoste

Ähnliche Antworten wie “Setzen Sie Python3.7 als Standard Ubuntu”

Fragen ähnlich wie “Setzen Sie Python3.7 als Standard Ubuntu”

Weitere verwandte Antworten zu “Setzen Sie Python3.7 als Standard Ubuntu” auf Python

Durchsuchen Sie beliebte Code-Antworten nach Sprache

Durchsuchen Sie andere Codesprachen