Issue
I've been trying to install flask-mysqldb
using pip install flask-mysqldb
, but every time I try it gives me an error that says :
error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.14.26428\bin\HostX86\x86\cl.exe' failed with exit status 2
I've looked around a lot and no answer works for me. I searched the file in https://www.lfd.uci.edu/~gohlke/pythonlibs/ but its not there.
I am on Windows 7 x64.
Solution
Of course you can not find whl for flask-mysqldb
, but you can find mysqlclient
.
Download suitable version for you platform from https://www.lfd.uci.edu/~gohlke/pythonlibs/#mysqlclient
Then, e.g. pip install mysqlclient-1.3.13-cp27-cp27m-win32.whl
, depends what you download.
Finally, pip install flask-mysqldb
again, this will work for you.
Answered By - atline
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.