yum groupinstall "Development Tools"
yum install -y openssl-devel zlib-dev sqlite-devel bzip2-devel如果安装openssl-devel出现报错:Protected multilib versions: libselinux-2.0.94-5.3.el6_4.1.i686 != libselinux-2.0.94-5.8.el6.x86_64可以尝试:yum downgrade libselinux*安装 Python-2.7wget https://www.python.org/ftp/python/2.7.10/Python-2.7.10.tgztar zxvf Python-2.7.10.tgzcd Python-2.7.10./configuremakemake installcd ..安装 easy_installwget https://pypi.python.org/packages/source/s/setuptools/setuptools-18.7.zipunzip setuptools-18.7.zipcd setuptools-18.7python2.7 setup.py installcd ..安装 pipeasy_install-2.7 pip# pip2.7 --versionpip 7.1.2 from /usr/local/lib/python2.7/site-packages/pip-7.1.2-py2.7.egg (python 2.7)ZYXW、参考1、CENTOS 6.5 安装 Python 2.7 总结http://segmentfault.com/a/11900000006542272、How To Set Up Python 2.7.6 and 3.3.3 on CentOS 6.4https://www.digitalocean.com/community/tutorials/how-to-set-up-python-2-7-6-and-3-3-3-on-centos-6-43、0006944: openssl-devel.x86_64 has .i686 libraries as a dependencyhttps://bugs.centos.org/view.php?id=69444、yum install error: protected multilib versions errorhttp://superuser.com/questions/345876/yum-install-error-protected-multilib-versions-error5、How to fix “unknown url type: https” error in easy_installhttp://ask.xmodulo.com/fix-unknown-url-type-https-error-easy_install.html(责任编辑:IT) |
