现在电脑安装python3.9和python3.10
sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.9 1
sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.10 2
然后
sudo update-alternatives --config python3
出现
There are 3 choices for the alternative python3 (providing /usr/bin/python3).
Selection Path Priority Status
------------------------------------------------------------
0 /usr/bin/python3.9 2 auto mode
1 /usr/bin/python3.10 2 manual mode
2 /usr/bin/python3.8 1 manual mode
* 3 /usr/bin/python3.9 2 manual mode
Press <enter> to keep the current choice[*], or type selection number:
输入3,按回车