«

安装了多个python版本设置默认python版本

发布于 阅读:93 教程


一、设置python版本
sudo alternatives --install /usr/bin/python3 python3 /usr/bin/python3.9 1
sudo alternatives --install /usr/bin/python3 python3 /usr/bin/python3.12 2
sudo alternatives --config python3

二、设置pip默认版本
sudo alternatives --install /usr/bin/pip3 pip3 /usr/bin/pip3.9 1
sudo alternatives --install /usr/bin/pip3 pip3 /usr/bin/pip3.12 2
sudo alternatives --config pip3

Python

收到1条评论
avatar
刘小猪 5 个月前
大佬
回复