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