CentOS 6升级python 2.6到2.7
来源:互联网 发布:xp能装MySQL 编辑:程序博客网 时间:2024/06/05 13:22
1.下载Python-2.7.13,并安装
wget https://www.python.org/ftp/python/2.7.13/Python-2.7.13.tgzmake make install
2.建立软连接,使系统默认的 python指向 python2.7
mv /usr/bin/python /usr/bin/python2.6.6 ln -s /usr/local/bin/python2.7 /usr/bin/python
3.解决系统 Python 软链接指向 Python2.7 版本后,因为yum是不兼容 Python 2.7的,所以yum不能正常工作,我们需要指定 yum 的Python版本
vi /usr/bin/yum
将文件头部的
!/usr/bin/python
改成
!/usr/bin/python2.6.6
0 0
- CentOS 6升级python 2.6到2.7
- centos 6 将python 2.6 升级到python 2.7
- Centos 6.4 python 2.6 升级到 2.7
- Centos 6.4 python 2.6 升级到 2.7
- Centos 6.4 python 2.6 升级到 2.7
- Centos 6.4 python 2.6 升级到 2.7
- Centos python 2.6 升级到 2.7
- Centos 6.4 python 2.6 升级到 2.7
- Centos 6.4 python 2.6 升级到 2.7
- Centos 6.4 python 2.6 升级到 2.7
- Centos 6.4 python 2.6 升级到 2.7
- Centos 6.4 python 2.6 升级到 2.7
- Centos 6.4 python 2.6 升级到 2.7
- Centos 6.4 python 2.6 升级到 2.7
- Centos 6.4 python 2.6 升级到 2.7
- Centos 6.4 python 2.6 升级到 2.7
- Centos 6.4 python 2.6 升级到 2.7
- Centos 6.4 python 2.6 升级到 2.7
- Copy List with Random Pointer
- switch语句的表达式可以是哪些类型?
- 【Shader】用一张渐变图实现卡通渲染效果
- Java线程-同步和异步的区别
- 电脑cpu怎么看 怎么看cpu好坏 (全文)
- CentOS 6升级python 2.6到2.7
- jquery .ajax demo 传参数给后台@RequestBody @RequestParms
- 巧用Grep 命令
- Retrofit+Rxjava的完美结合
- web前端程序员真的值这么多钱吗?
- 资料信息总结
- 一个程序员的自我修养
- ZCMU-1183-大数相余
- 卷积层的实现