How to modify the default version of python in Ubuntu

Check the python version: python --version
Query whether python 3.5 is installed in the system: whereis python3.5
delete the original python connection file: sudo rm /usr/bin/python
establish a soft connection for python3.5:sudo ln -s /usr/bin/python3.5 /usr/bin/python

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325372130&siteId=291194637