install mysqlclient on win10 python37

from: https://stackoverflow.com/questions/51146117/installing-mysqlclient-in-python-3-6-in-windows

I am using python3.7 on Windows 10 operating system. I had same issue and after a long research I had installed it successfully.

Install “Microsoft Visual C++ Build Tools” AND My OS is having 64 bit operating system but still then it need to install 32 bit version “mysqlclient‑1.4.2‑cp37‑cp37m‑win32.whl”

Download binary wheels from “https://www.lfd.uci.edu/~gohlke/pythonlibs/” and run command

pip install [path_to_downloaded_file] eg: C:\Users\Ds\mysqlclient-1.4.2-cp37-cp37m-win32.whl

use pipenv instead of pip if you are using virtual environment.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.