一、 环境安装(教程)
01____python 3.6 安装
https://blog.csdn.net/qq_42693848/article/details/88900553 链接
1、安装配备包
apt-get update
apt-get install python-software-properties
apt-get install apt-file
apt-file update
apt-get install software-properties-common
apt-get install vim
2. python3.6安装
sudo add-apt-repository ppa:deadsnakes/ppa
出现暂停 按下回车键继续
sudo apt-get update
sudo apt-get install python3.6
如果失败则执行
sudo add-apt-repository ppa:jonathonf/python-3.6
sudo apt-get update
sudo apt-get install python3.6
3、设置python优先
sudo update-alternatives --config python
如果展示下面这段内容 说明没有设置优先级
update-alternatives: error: no alternatives for python3
sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.5 1
sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.6 2
或
sudo update-alternatives --set python /usr/bin