This command adds Python 3 as an alternative for the python command
This command adds Python 3 as an alternative for the python command
- Code:
sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 1
This command adds Python 3 as an alternative for the python command.
Set Python 3 as the default by running the following command:
- Code:
sudo update-alternatives --set python /usr/bin/python3
This command sets the default Python version to Python 3.
Verify that Python 3 is now the default by running
- Code:
python --version
Similar topics
» Securing a Python Menu With Python Encrypted Password File
» Raspberry Pi Python Menu Programming For RPi Automation Via Command Line
» Some Python Examples
» Python Bootstrap
» Python BlueTooth Chat
» Raspberry Pi Python Menu Programming For RPi Automation Via Command Line
» Some Python Examples
» Python Bootstrap
» Python BlueTooth Chat
Permissions in this forum:
You cannot reply to topics in this forum