Debian中切换python版本
来源:互联网 发布:天刀如何导出捏脸数据 编辑:程序博客网 时间:2024/05/18 19:40
Debian中切换python版本
当你安装 Debian Linux 时,安装过程有可能同时为你提供多个可用的 Python 版本,因此系统中会存在多个 Python 的可执行二进制文件,你可以按照以下方法使用 ls 命令来查看你的系统中都有那些 Python 的二进制文件可供使用:
# update-alternatives –list python
/usr/bin/python2.7
/usr/bin/python3.4
我们就可以使用下方的命令随时在列出的 Python 替代版本中任意切换:
# update-alternatives –config python
一旦我们的系统中不再存在某个 Python 的替代版本时,我们可以将其从 update-alternatives 列表中删除掉。例如,我们可以将列表中的 python2.7 版本移除掉。
# update-alternatives –remove python /usr/bin/python2.7
也可以将列表中的 python2.7 版本添加进去。其中1代表优先级,大的优先。
# update-alternatives –install /usr/bin/python python /usr/bin/python2.7 1
0 0
- Debian中切换python版本
- Debian中如何切换默认Python版本
- Debian中如何切换默认Python版本
- ubuntu中python版本切换
- 如何将 Debian Linux 中的默认的 Python 版本切换为替代版本
- Ubuntu系统中切换python版本
- ubuntu 中 python 版本2.7切换为 版本 3.5
- 切换python版本
- python 多版本切换
- wingIDE5切换python版本
- Python 多版本切换
- PyCharm切换Python版本
- ubuntu16 切换python版本
- 多版本python切换
- anaconda 切换python版本
- Python切换版本
- ubuntu python版本切换
- ubuntu17切换python版本
- caffe学习笔记(12):为网络输入正确格式的blob['data']
- 聚合查询
- VS2015 连接数据库操作
- String.valueOf()方法的使用
- linux安装zookeeper(单节点)
- Debian中切换python版本
- tplink桥接
- PAT 乙级 1042. 字符统计(20)
- 2017.5.7 APIO #4
- Error: Your project contains C++ files but it is not using a supported native build system.
- 简易文本分割器
- Linux命令行下编译Android NDK的示例代码
- es聚合
- maven 仓库配置 pom中repositories属性