Change Python Version
Debian is still delivered with 2.7 as the default version of python. /usr/bin/python is in fact a symlink to the current default versions binary.
The update-alternatives scripts allows to change this.
Check with versions are already installed
The output will be something like this
Check what are the python versions in /usr/bin/
The output will be something like this
Python 2.7 and 3.5 are installed. python3 is a symlink to 3.5
To set python 3.5 as default use the update-alternatives scripts. You can set more alternatives the last number defines the priority. Higher number means higher priority.
if you want to set python3.5 to be the priority change it to number 1
After setting more then one alternatives you can easily switch the version by running
You need sudo privilege to run the last commands.
----------
----------
© DarknessCode