安装 MySQL-python 出错

# python2.6 setup.py install

Traceback (most recent call last):
File "setup.py", line 5, in <module>
from setuptools import setup, Extension
ImportError: No module named setuptools

处理方法,安装setuptools

 
  1. wget http://pypi.python.org/packages/source/s/setuptools/setuptools-0.6c11.tar.gz 
  2.   
  3. tar zxvf setuptools-0.6c11.tar.gz 
  4. cd setuptools-0.6c11 
  5. python2.6 setup.py install 

 error: command 'gcc' failed with exit status 1

 

 
  1. yum install mysql-devel -y