Under linux will change the default Python environment Python3.6

step:

# Delete the original point python2 soft link 
sudo mv / usr / bin / Python / usr / bin / python.bak 
 # /usr/local/python3.6/bin/python3.6 the actual path of the bin file python3.6 Python3.6 under the folder path, this change in accordance with their own situation 
sudo ln -s /usr/bin/python3.6 / usr / bin   / python

Then a window directly into the python is called python3.6

Check to see Supplementary naming python versions and path:

python --version

source python

 

Guess you like

Origin www.cnblogs.com/wwh/p/11654939.html