ubuntu change python version

1. apt-get install python3 (installed under /usr/local/lib by default after successful installation)

Second, cd / usr / bin

3. rm python

4, ln -s /usr/bin/python3.4 /usr/bin/python

5. Enter python in the terminal and display python as 3.4



 
 

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326856915&siteId=291194637