centos提示ImportError: No module named MySQLdb解决办法,同时也附上了ubuntu 系统出现此问题的解决办法。 系统:centos 5.9 需要的软件包:setuptools-0.6c11.tar.gz MySQL-python-1.2.3.tar.gz 1.安装setuptools-0.6c11 wget --no-check-certificate http://pypi.python.org/packages/source/s/setuptools/setuptools-0.6c11.tar.gz tar zxf setuptools-0.6c11.tar.gz && cd setuptools-0.6c11 python setup.py build python setup.py install 2.安装MySQL-python-1.2.3 wget http://sourceforge.net/projects/mysql-python/files/mysql-python/1.2.3/MySQL-python-1.2.3.tar.gz/download tar zxf MySQL-python-1.2.3.tar.gz && cd MySQL-python-1.2.3 python setup.py build python setup.py install (责任编辑:IT) |