centos 6.5t升级python注意事顶及遇到问题的解决方法
2015-05-26 15:59
716 查看
1. 安装依赖包
必须安装的二个依赖: zlib-devel, openssl-devel
如果没有安装zlib-devel这个出错,容易看出来。但openssl-devel没安装的话,出错很难看出来。 现像见后文。
2. 源码编译安装python
https://www.python.org/ftp/python/2.7.3/Python-2.7.3.tgz
3. 源码编译安装setuptools
https://pypi.python.org/packages/source/s/setuptools/setuptools-16.0.tar.gz
4. 使用easy_install 安装pip
easy_install pip
出错现像及解决方法:
解决方法:
安装openssl-devel包,然后重新安装python
必须安装的二个依赖: zlib-devel, openssl-devel
如果没有安装zlib-devel这个出错,容易看出来。但openssl-devel没安装的话,出错很难看出来。 现像见后文。
2. 源码编译安装python
https://www.python.org/ftp/python/2.7.3/Python-2.7.3.tgz
3. 源码编译安装setuptools
https://pypi.python.org/packages/source/s/setuptools/setuptools-16.0.tar.gz
4. 使用easy_install 安装pip
easy_install pip
出错现像及解决方法:
Searching for pip Reading https://pypi.python.org/simple/pip/ Download error on https://pypi.python.org/simple/pip/: unknown url type: https -- Some packages may not be found! Couldn't find index page for 'pip' (maybe misspelled?) Scanning index of all packages (this may take a while) Reading https://pypi.python.org/simple/ Download error on https://pypi.python.org/simple/: unknown url type: https -- Some packages may not be found! No local packages or download links found for pip error: Could not find suitable distribution for Requirement.parse('pip')
解决方法:
安装openssl-devel包,然后重新安装python
相关文章推荐
- centos 6.2升级6.5遇到的问题及解决方法
- centos 6.5 升级python到python 2.7.6出现的问题及解决方法汇总[经常更新]
- Centos6.5 python升级成2.7版本出现的一些问题解决方法
- 一个新手学习python的过程中遇到的一些问题及解决方法
- Python遇到的小问题与解决方法,时时更新!
- 关于Centos安装fabric遇到的问题和解决方法
- Centos与PC方便传文件遇到的问题的解决方法
- CentOS下编译比特币(Bitcoin)客户端遇到possibly undefined macro: PKG_CONFIG_LIBDIR问题的解决方法
- centos6.5 升级python2.6.6到2.7.9安装过程出现问题解决过程
- 使用Python脚本实现批量网站存活检测遇到问题及解决方法
- 使用Python脚本实现批量网站存活检测遇到问题及解决方法
- windows下安装python basemap时使用Visual Studio编译geos时遇到的问题以及解决方法
- python3写爬虫程序时,遇到的问题及解决方法
- Linux/CentOS 升级C基本运行库CLIBC的注意事项(当想解决GLIBC_2.x找不到的编译问题)
- Python结巴中文分词工具使用过程中遇到的问题及解决方法
- QT项目升级(QT4.6.3到QT5.2)时,遇到的问题和解决方法
- Spring4.1.1升级到4.3.9遇到的问题与解决方法
- QT项目升级(QT4到QT5)时,遇到的问题和解决方法
- python 2 python3 同时安装遇到问题解决方法
- 使用CentOS 遇到的问题以及解决方法