Linux升级Python
2015-03-15 20:52
239 查看
查看python的版本
安装Python
python多版本共存解决
解决yum的python版本问题
2015-02-10
shell> python -V Python 2.6.6
安装Python
shell> tar zxvf Python-2.7.9.tgz shell> cd Python-2.7.9 建立新的安装路径python,而是安装路径 shell> mkdir -p /usr/local/python shell> ./configure --prefix=/usr/local/python shell> make && make install
python多版本共存解决
shell> mv /usr/bin/python /usr/bin/python_old shell> ln -s /usr/local/python/bin/python /usr/bin/python shell> python -V Python 2.7.9 shell> python_old -V Python 2.6.6
解决yum的python版本问题
shell> yum There was a problem importing one of the Python modules required to run yum. The error leading to this problem was: No module named yum Please install a package which provides this module, or verify that the module is installed correctly. It's possible that the above module doesn't match the current version of Python, which is: 2.7.9 (default, Feb 10 2015, 22:36:03) [GCC 4.4.6 20110731 (Red Hat 4.4.6-3)] If you cannot solve this problem yourself, please go to the yum faq at: http://yum.baseurl.org/wiki/Faq shell> vim /usr/bin/yum ============================================================ #!/usr/bin/python替换为 #!/usr/bin/python_old ============================================================
整理自网络
Svoid2015-02-10
相关文章推荐
- Linux下python安装升级详细步骤
- 关于Linux自带的python2.6.6升级到2.7.10版本步骤详解
- Linux下python升级步骤
- python 环境搭建-Linux 系统下python2.6.6升级python3.5.2步骤
- Linux下升级python至2.7
- 在Linux中升级Python
- linux升级python
- python--linux下,升级python
- linux 升级 Python 版本 (CentOS 6 为例)
- Linux下 Python升级
- Linux升级Python版本
- linux升级python与pip
- Linux下python升级至2.7步骤 分类: python基础学习 python下载 2013-09-29 11:24 4266人阅读 评论(2) 收藏
- python---linux下升级python的版本
- linux下Python版本升级
- Linux(Centos)——下升级python3.3
- linux下升级python2.0到python3.0
- Linux下python升级到python-2.7.13
- 将linux默认python升级到2.7.4版本
- Linux下python升级至2.7步骤