Centos prompt ImportError: NomodulenamedMySQLdb solution

Source: Internet
Author: User
Centos prompts ImportError: NomodulenamedMySQLdb solution, and also attaches a solution to this problem in ubuntu. System: centos5.9 required software package: setuptools-0.6c11.tar.gzMySQL-python-1.2.3.tar.gz1. install the setuptools-0.6c11wget -- no-check-certifi centos prompt ImportError: No module named MySQLdb solution, along with the ubuntu system's solution to this problem.
System: centos 5.9
Required software packages: setuptools-0.6c11.tar.gz
1. install 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. install 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
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.