ubuntu更改python版本

一、apt-get install python3(安装成功后默认安装在/usr/local/lib下)

二、cd /usr/bin

三、rm python

四、ln -s /usr/bin/python3.4 /usr/bin/python

五、终端输入python,显示python为3.4



 
 

猜你喜欢

转载自zx10103326.iteye.com/blog/2244265