输出类似于: There are2choicesforthe alternative python (providing /usr/bin/python). Selection Path Priority Status---1/usr/bin/python3.81auto mode2/usr/bin/python3.92manual mode Press<enter> to keep the current choice[*], or type selection number: 输入对应的编号切换到需要的版本。 验证版本切...
There are 2 choices for the alternative python3 (providing /usr/bin/python3). Selection Path Priority Status --- * 0 /usr/bin/python3.8 1 auto mode 1 /usr/bin/python3.8 1 manual mode 2 /usr/bin/python3.9 2 manual mode Press<enter>to keep the current choice[*], or type selection ...
10 root@ubuntu:/usr/bin# sudo update-alternatives --config python There are 2 choicesforthe alternative python (providing/usr/bin/python). Selection Path Priority Status --- 0/usr/bin/python2.7 2 auto mode 1/usr/bin/python2.7 2 manual mode * 2/usr/bin/python3.8 1 manual mode Press <e...
执行后,会出现一个类似于以下的界面: There are 2 choices for the alternative python (providing /usr/bin/python). Selection Path Priority Status --- * 0 /usr/bin/python2 1 auto mode 1 /usr/bin/python2 1 manual mode 2 /usr/bin/python3 2 manual mode Press<enter>to keep the current ch...
# update-alternatives--remove python/usr/bin/python2.7update-alternatives:removing manually selected alternative-switching python to auto mode update-alternatives:using/usr/bin/python3.4to provide/usr/bin/python(python)inauto mode or 移除软连接
最近在Ubuntu16.04安装了python3.5还有系统自带的python2.7.13,总结一下不同版本的切换问题。 alias:别名 bashrc:个人配置文件 一、修改Python版本(针对用户) 想要为某个特定用户修改 Python 版本,只需要在其 home 目录下创建一个alias(别名) 即可。打开该用户的~/.bashrc文件,添加新的别名信息来修改默认使用的 Pytho...
There are 2 choices for the alternative python3 (providing /usr/bin/python3). Selection Path Priority Status --- * 0 /usr/bin/python3.5 2 auto mode 1 /usr/bin/python3.5 2 manual mode 2 /usr/bin/python3.8 1 manual mode Press <enter...
ubuntu16.04下python版本切换的⽅法 本⽂主要是记录ubuntu 16.04下python环境配置,具体内容如下 对于ubuntu 16.04,由于本⾝是⾃带python,这样就减少了在windows下的下载和环境变量配置,⾮常不错。但是他本⾝是⾃带两个版本的python,2.X和3.X,两个版本,两个版本默认的是使⽤2.X,毕竟3.X...
更改Ubuntu默认python版本的两种方法python-Anaconda 更改Ubuntu默认python版本的两种⽅法python- Anaconda 你可以按照以下⽅法使⽤ ls 命令来查看你的系统中都有那些 Python 的⼆进制⽂件可供使⽤。$ ls /usr/bin/python* /usr/bin/python /usr/bin/python2 /usr/bin/python2.7 /usr/bin/python3 /...
$ sudo update-alternatives --config python3There are 2 choices for the alternative python3 (providing /usr/bin/python3).Selection Path Priority Status---* 0 /usr/bin/python3.5 2 auto mode1 /usr/bin/python3.5 2 manual mode2 /usr/bin/python3.8 1 manual modePress <enter> to keep the...