发文章
发文工具
撰写
网文摘手
文档
视频
思维导图
随笔
相册
原创同步助手
其他工具
图片转文字
文件清理
AI助手
留言交流
直接执行这两个命令即可:
sudo update-alternatives --install /usr/bin/python python /usr/bin/python2 100
sudo
sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 150
如果要切换到Python2,执行:
sudo update-alternatives --config python
来自: 小魏要学习 > 《ubuntu》
0条评论
发表
请遵守用户 评论公约
Ubuntu16.04怎样安装Python3.6
sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.5 1.sudo update-alternatives --install /usr/bin/py...
ubuntu16.04如何升级gcc,例如到gcc4.8
ubuntu16.04如何升级gcc,例如到gcc4.8.sudo apt-get install gcc-4.8 g++-4.8sudo update-alternatives --remove-all gcc。sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 20....
UOS手工编译安装Python3.9
$ tar -xvf Python-3.9.0.tgz$ cd Python-3.9.0$ ./configure --prefix=/usr/python --enable-optimizations --with-ensurepip=install$ make -j 8$ sudo make altinstall.$ sudo update-alternatives ...
Ubuntu安装Python3.6并切换到3.6版本
dale@deheng:~$ ls /usr/local/lib/perl python2.7 python3.42 安装Python 3.6.我随后利用本机已有的3.4和2.7版本,进行配置,以找回Pyt...
从零开始机器学习 第0篇 工欲善其事必先利其器之环境搭建
1.1 ubuntu(16.04)自带了python2.7和python3.5,系统默认python版本为2.7 ;sudo update-alternatives --install /usr/bin/python python /usr/bin/python2 100.sudo update-alternatives --install ...
Ubuntu?中安装低版本的gcc/g++
Ubuntu 10.04下安装gcc4.1与g++4.1
安装了之后,系统之中就存在两个GCC版本4.4和4.1,可以通过ls命令查看: ls /usr/bin/gcc* /usr/bin/gcc /usr/bin/gcc-4.1 /usr/bin/gcc-4.4 /usr/bin/gccbug-4.1设置GCC4.1和GCC4.4的可选项,在终...
【Ubuntu20.04】安装gcc11 g++11, Ubuntu18.04
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-11 100 sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g+±11 100.
解决jetson Nano中python版本问题(Ubuntu系统都适用)
hich python3/usr/bin/python3 which python3.6/usr/bin/python3.update-alternatives --install /usr/bin/python python /usr/bin/pyth...
微信扫码,在手机上查看选中内容