Python版本的选择
文章目录
根据权重选择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

评论
登录后参与技术讨论,分享你的经验与见解。
登录 / 注册暂无评论