安装pip前需要安装setuptools工具
下载 https://pypi.python.org/packages/2.6/s/setuptools/
chmod +x setuptools-0.6c11-py2.6.egg
sh setuptools-0.6c11-py2.6.egg
源码包安装pip
下载 https://pypi.python.org/packages/source/p/pip/
tar zxvf pip-0.7.2.tar.gz
cd pip-0.7.2
python2.6 setup.py install
到此python-pip安装成功
联网安装 pip install python-debugtools
https://pypi.python.org/packages/source/M/MySQL-python/
tar zxvf MySQL-python-1.2.3.tar.gz
cd MySQL-python-1.2.3
yum install python-dev
python2.6 setup.py build
python2.6 setup.py install
python2.6
>>> import MySQLdb
./manage.py validate
./manage.py sqlall pyweb
./manage.py syncdb
./manage.py shell