# python
Python 2.6.6 (r266:84292, Jan 22 2014, 09:42:36)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
# python
Python 2.7.9 (default, May 9 2016, 09:43:27)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-16)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
安装后一些修改调试
安装后默认指定的yum无法正常运行,这个时候需要更改一下Python指定
1
# vim /usr/bin/yum #!/usr/bin/python2.6 #修改为旧版本
出现退格键乱码问题:
1
2
3
4
Python 2.7.9 (default, May 9 2016, 09:43:27)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-16)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import ^H^[[D