[Fixed]-Python pip install django mysql fails on Windows

1👍

Installing MySQL support of Django on Windows is suffering and I came across the same question just like you. For my situation, I use python3.4, django1.8.5, I solved this problem by download wheel file from here and use pip to install it:

pip install ***.whl

0👍

I think there is an issue with finding the include file “config-win.h”.

Please check out this error message:

_mysql.c(42): fatal error C1083: Cannot open include file: 'config-win.h': No such file or directory

The have moved the include files to a separate folder.
Now they should be located in:

C:\Program Files\MySQL\Connector C 6.0.2\include

Please try the instructions from this link:
"Cannot open include file: 'config-win.h': No such file or directory" while installing mysql-python

Leave a comment