Machine learning-Xiaobai learning Linux (1) install python

In Ubuntu, comes with python can use the command [python -V] version is [Python 2.7.17] Enter the command [sudo apt-get install python3] Generally the latest version is downloaded. Enter the command [which python] to view the installation path. After entering the installation path, modify the specified version of Python (generally entering python in the terminal refers to the 2.7 version, so you need to modify) Enter the command [ls -l | grep python] to view the specified version. Then enter the command [sudo rm python] to remove the default version. Enter the command [sudo ln -s /usr/bin/python3.6 / usr / bin / python] to create a specified python version. Then test to see if you specified python3.6, you can directly enter [python] to view

 

 

 

 

 

 

 

 

 

Guess you like

Origin www.cnblogs.com/cfancy/p/12752583.html