1. First make sure that Python, Eclipse, and Eclipse are already installed under Windows to successfully run Python Pydev
2. Download Mysql-python
Address: Http://www.codegood.com/downloads
Choose the version of Mysql-python based on your own system and the version of Python you have installed
My system version is Windows 8 64bit Python is 2.7.6
So what I'm downloading is mysql-python-1.2.3.win-amd64-py2.7.exe .
Double-click the installation after the download is complete, and if you are prompted to find Python, make sure the version and environment are consistent
3. Open Eclipse and select Windows--preferences--pydev--interpreter-python
4, click Libraries-New Folder-Find the MySQLdb installation directory, generally in the Python installation directory under the Site-packages mysqldb, select this directory-click Apply--If prompted box, Choose Select All--OK
5, click Forced Builtins--Enter MYSQLDB--OK--then click Apply--If prompted box, select All--OK
6, restart Eclipse,import mysqldb can
This article is from the "Mr. Du" blog, please be sure to keep this source http://duxiansheng.blog.51cto.com/11062970/1836153
Eclipse pydev Add mysqldb module, install under Windows Mysql-python