mysql-python install error: Cannot open include file 'config-win.h' mysql-python install error: Cannot open include file 'config-win.h' python python

mysql-python install error: Cannot open include file 'config-win.h'


for 64-bit windows


This didn't work for me:

pip install mysqlclient

so I found this after a while on Stack Overflow:

pip install --only-binary :all: mysqlclient

and it went all through, no need for MS Visual C++ 14 Build tools and stuff.

Note: for now this doesn't work with Python 3.7, I also had to downgrade to Python 3.6.5.


well this worked for me:

pip install mysqlclient

this is for python 3.x in window 7 i am not sure about other windows os versions