Cenots upgrade Python Trouble died, 6.4 also do not update the next version, died in 2.6.6, true y of the egg ache AH ~ ~ ~
Upgrade Python First, execute
wget Http://www.python.org/ftp/python/2.7.5/Python-2.7.5.tgztar zxvf PYTHON-2.7.5.TGZCD python-2.7.5./ Configuremake allmake installmake Cleanmake Distclean
The current path should be/usr/local/bin/python2.7, and by the way, look at the version
/usr/local/bin/python2.7-v
And check the current version.
Python-v
What I'm showing here is 2.6.6.
Mv/usr/bin/python/usr/bin/python2.6.6ln-s/usr/local/bin/python2.7/usr/bin/python
Now look at the version.
Python-v
It should show 2.7.5.
Yum relies on modifications
Nano/usr/bin/yum
Modify the head #!/usr/bin/python
to be #!/usr/bin/python2.6.6
able.
Installing Setuptools
wget Http://pypi.python.org/packages/2.7/s/setuptools/setuptools-0.6c11-py2.7.egg--no-check-certificatesh Setuptools-0.6c11-py2.7.egg
Install PIP
wget http://pypi.python.org/packages/source/p/pip/pip-1.0.2.tar.gz--no-check-certificatetar ZXF PIP-1.0.2.TAR.GZCD Pip-1.0.2python setup.py Install
Do not know what is going on recently, download Python stuff, must add--no-check-certificate ...
Now, it's easy to install things using PIP install, for example
Pip Install Pelicanpip Install Markdown
It's very convenient.
This article is from the "XFICC" blog, make sure to keep this source http://xficc.blog.51cto.com/1189288/1567562
CentOS 6.4 Upgrade Python install Pip