Ubuntu下安装Python3.5

1、通过命令行安装Python3.5

sudo apt-get install python3.5

2、Ubuntu默认使用的是Python2,据了解,版本2/3并不兼容,而Ubuntu底层又使用的是2,故不能卸载2,只需要讲默认的Python指向到3即可。

sudo rm /usr/bin/python
sudo ln -s /usr/bin/python3.5 /usr/bin/python

猜你喜欢

转载自blog.csdn.net/yu422560654/article/details/51470293