sudo add-apt-repository ppa:jonathonf/python-3.6
sudo apt-get update sudo apt-get install python3.6
sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.6 1
update-alternatives command to change the default command system soft point, where the reference, the instruction is to modify the above two system default / usr / bin / python3 the soft point, point to the two positions, the rearmost 1 and 2 It is a priority.
The following command may be a handover point Python3
sudo update-alternatives --config python3
reference:
https://blog.csdn.net/YubaoLouisLiu/article/details/88594309