Eclipse pydev Add mysqldb module, install under Windows Mysql-python

Source: Internet
Author: User


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

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.