#如果安装mysql_python出现以下错误,下先安装gcc
#error: Setup script exited with error: command ‘gcc’ failed with exit status 1
以上也可以不使用yum,直接从源码安装,请参考centos下安装setuptools(easy_install)和MySQL-python
在运行完第一步,就是安装完python26-setuptools后,使用easy_install安装django可能会出现 找不到命令(-bash: easy_install-2.6: command not found)的现象,这是因为没有安装setuptools的开发包的原因,再试用yum安装一下开发包就OK了,命令为:
然后如果使用easy_install命令安装django出现:error: invalid Python installation: unable to open /usr/lib/python2.6/config/Makefile (No such file or directory) 的错误,那么是因为没有安装python的开发包,使用下面命令安装:
至此,就可以使用easy_install命令来安装你想要的东西了