Centos 6.4 python 2.6 升级到 2.7
来源:互联网 发布:js中的splice 编辑:程序博客网 时间:2024/06/03 14:41
一开始有这个需求,是因为用 YaH3C 替代 iNode 进行校园网认证时,一直编译错误,提示找不到 Python 的某个模块,百度了一下,此模块是在 Python2.7 以上才有的,但是系统的自带的python是2.6版本,难怪一直连不上网。于是,继续百度google,进行安装,后来又出现问题...在此开篇记录一下,权当备忘。
查看python的版本
1.下载Python-2.7.3
2.解压
3.更改工作目录
4.安装
5.查看版本信息
6.建立软连接,使系统默认的 python指向 python2.7
7.重新检验Python 版本
8解决系统 Python 软链接指向 Python2.7 版本后,因为yum是不兼容 Python 2.7的,所以yum不能正常工作,我们需要指定 yum 的Python版本
#!/usr/bin/python
改成
#!/usr/bin/python2.6.6
http://www.zhangchun.org/the-centos6-3-upgrade-python-to-2-7-3-
这篇教程就到这里了,但是不久就突然发现输入法图标不见了,然后打字没有候选框!iBus 崩了!再次进行搜索,又是版本问题 iBus也是不支持Python2.7的啊!
于是。。。
9.配置iBus
分别用 vi 打开下面两个文件,找到 exec python 那一行,把exec python 改为 exec python2.6 保存,退出。iBus在重启后就恢复正常了!是不是很开心?
阅读全文
0 0
- 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
- 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
- RabbitMQ-c在Linux上编译
- 年终写总结,这个Excel图表技巧一定要看看
- HttpWebRequest上传图片Post到接口
- C 计时器大全
- 深入浅出JMS(一)--JMS基本概念
- Centos 6.4 python 2.6 升级到 2.7
- VSCode Python开发环境搭建
- python jieba
- angularjs filters on ng-model in an input
- 【CodeForces
- Oracle 查询数据库中包含某一特定值的所有字段名,以及表名
- Java8源码-HashMap
- 对象-工厂模式-构造函数-原型-原型链
- QMetaObject::connectSlotsByName: No matching signal for on_pushButton_clicked()