CentOS下Python2.6升级到Python3.5
来源:互联网 发布:中小型企业网络规划 编辑:程序博客网 时间:2024/05/20 00:11
[root@localhost Python-3.5.0]# pythonPython 3.5.0 (default, Oct 7 2016, 04:34:35) [GCC 4.4.7 20120313 (Red Hat 4.4.7-17)] on linuxType "help", "copyright", "credits" or "license" for more information.11、修改yum配置文件
vim /usr/bin/yum
#!/usr/bin/python python修改为 python2.6import systry: import yumexcept ImportError: print >> sys.stderr, """\There was a problem importing one of the Python modulesrequired to run yum. The error leading to this problem was: %sPlease install a package which provides this module, orverify that the module is installed correctly.It's possible that the above module doesn't match thecurrent version of Python, which is:%sIf you cannot solve this problem yourself, please go to the yum faq at:
1 0
- CentOS下Python2.6升级到Python3.5
- CentOS下Python2.6升级到Python3.5
- centos 升级python2.6 到python3.3
- centos 升级python2.6 到python3.3
- centos下Python2.X升级到Python3.X
- CentOS下升级python2.6到2.7
- centos 已经安装python2.7 升级到python3.5
- centos下python2升级为python3
- Mac下升级python2.7到python3.6
- Mac下升级python2.7到python3.6详解
- centos python2.6升级到python2.7
- python2.6 升级到python3.3
- CentOS6.5下升级python2.6到python2.7
- 升级Python2.7到Python3
- Linux升级python2到python3
- CentOS 6.X系统下升级Python2.6到Python2.7 的方法
- Centos升级python2.6到3.2
- CentOS yum 升级Python2.6 到 2.7
- RStudio在mac上的中文编码问题
- 最小生成树(Prim)(普利姆最小生成树)
- hdu5929Basic Data Structure
- myeclipse2015添加tomcat
- 5927 Auxiliary Set (CCPC) 无根树转有根树
- CentOS下Python2.6升级到Python3.5
- python爬虫之BeautifulSoup入门
- java的封装
- 想学点东西
- CASIO fx-9750的贪吃蛇
- 安卓Activity生命周期相关
- STL中的算法
- 剑指offer:n个骰子的点数(java)
- iOS录音编程简介