首页 > IT职业 > IT生活 > 树莓派怎么升级python

1、安装 python3
sudo apt install python3
2、卸载 python2.7 (可选)
sudo apt remove python
3、再执行如下命令自动清理 python2.7 的依赖
sudo apt autoremove
4、删除掉原先 python 的链接
sudo rm /usr/bin/python
5、创建一个新的链接指向刚刚安装的 python3.5
sudo ln -s /usr/bin/python3.5 /usr/bin/python
python学习网,免费的在线学习python平台,欢迎关注!
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/4405/viewspace-2835503/ ,如需转载,请注明出处,否则将追究法律责任。