根据权重选择Python版本
详细:https://www.cnblogs.com/hwlon…
- 配置ssh链接: 安装openssh-server
sudo apt-get install openssh-server
- 安装Python3及pip3
sudo apt-get install python3 sudo apt install python3-pip
- 列表项目
sudo update-alternatives --install /usr/bin/python python /usr/bin/python2 100 sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 150
- 验证
python --version
Python3切换至Python2
sudo update-alternatives --config python
Python2切换至Python3
sudo update-alternatives --config python
本文来自投稿,不代表程序员编程网立场,如若转载,请注明出处:http://www.cxybcw.com/199184.html