Troubleshooting pycharm configuration of MySQL data source failed

Source: Internet
Author: User

System: WIN8

Version:python 2.7.10

Reference: http://www.ithao123.cn/content-9297380.html

Problems in the blog have been encountered, after reference still cannot solve, the least willing to environmental problems.

Roughly by:

1, after the configuration in the Pycharm django+mysql, start the project error, unable to find the MySQLdb module, so to D:\Python27\Scripts

The Python installation directory runs the PIP install Mysql-python command installation.

2, still error, can not find Config-win.h

3, download Mysql-connector-c-6.0.2-win32, install.

4, download mysql-python-1.2.5, unzip D:\MySQL-python-1.2.5, modify Site.cfg

#connector = C:\Program Files (x86) \mysql\mysql connector C 6.0.2

Connector = C:\Program Files\mysql\mysql connector C 6.0.2

5, re-execute pip install Mysql-python command is still not available, enter the D:\MySQL-python-1.2.5 directory,

Run python setup.py instatll command, finally no error.

  

Troubleshooting pycharm configuration of MySQL data source failed

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.