python2.6升级python2.7
来源:互联网 发布:赵泓霖的网络课100节 编辑:程序博客网 时间:2024/05/16 09:45
- 1.获取python2.7
wget http://www.python.org/ftp/python/2.7.3/Python-2.7.3.tgz
- 2.解压
tar -xzvf Python-2.7.3.tgz
- 3.创建python2.7文件夹并且安装python2.7
./configure --prefix=/usr/local/python27make && make install
- 4.备份老python
mv /usr/bin/python /usr/bin/python_old
- 5.为新python建立连接
ln -s /usr/local/python27/bin/python2.7 /usr/bin/python
- 6.查看版本
python -V
- 7.修改yum的配置(不然会报错)
There was a problem importing one of the Python modulesrequired to run yum. The error leading to this problem was: No module named yumPlease 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:2.7.3 (default, Oct 25 2017, 10:13:29) [GCC 4.4.7 20120313 (Red Hat 4.4.7-17)]If you cannot solve this problem yourself, please go to the yum faq at: http://yum.baseurl.org/wiki/Faq
只需要修改/usr/bin/yum文件,将(yum还是用2.6版本):
#!/usr/bin/python修改为#!/usr/bin/python_old
保存退出就搞定
阅读全文
0 0
- python2.6升级python2.7
- fedora13 python2.6升级到python2.7
- centos python2.6升级到python2.7
- python2.6 升级到python2.7
- centos6原生python2.6升级python2.7
- CentOS5.6上将Python2.6升级成Python2.7
- CentOS升级Python2.6到Python2.7并安装pip
- CentOS6.5下升级python2.6到python2.7
- CentOS下python2.6升级为python2.7
- CentOS升级Python2.6到Python2.7并安装pip
- CentOS升级Python2.6到Python2.7并安装pip
- Python--CentOS 从Python2.6升级到Python2.7
- Linux CentOS6.X 升级python2.6到python2.7
- CentOS升级Python2.6到Python2.7并安装pip
- CentOS升级Python2.6到Python2.7并安装pip
- CentOS升级Python2.6到Python2.7并安装pip
- centos 6.X 升级Python2.6到python2.7
- [教程]centos6.3从python2.6升级到python2.7
- PullToRefreshListView的使用
- RecyclerView多条目加载
- 阿里巴巴iDST+阿里视频云:计算机视觉和机器学习在消费级视频中的应用
- 谷歌quic协议自带网络仿真器代码分析(一)
- 网络中数据传输过程的分析
- python2.6升级python2.7
- 2.3、列表
- 关于使用axios的一些心得技巧分享
- .a静态库
- 重温数据结构:哈希 哈希函数 哈希表
- dubbo源码 学习笔记(一)
- 创建指定路径文件
- 2.4、元组
- 阿里Java开发手册之编程规约