While installing mysqlclient in python virtualenv, some might have experienced issue like
"failed building wheel for mysqlclient". This issue occurs mostly in Windows, to overcome this we need to download appropriate version of mysqlclient-xxx-xx.whl files, search for below files
Mysqlclient, a fork of the MySQL-python interface for the MySQL database.
- mysqlclient‑1.3.10‑cp27‑cp27m‑win32.whl
- mysqlclient‑1.3.10‑cp27‑cp27m‑win_amd64.whl
- mysqlclient‑1.3.10‑cp34‑cp34m‑win32.whl
- mysqlclient‑1.3.10‑cp34‑cp34m‑win_amd64.whl
- mysqlclient‑1.3.10‑cp35‑cp35m‑win32.whl
- mysqlclient‑1.3.10‑cp35‑cp35m‑win_amd64.whl
- mysqlclient‑1.3.10‑cp36‑cp36m‑win32.whl
- mysqlclient‑1.3.10‑cp36‑cp36m‑win_amd64.whl
and run the command
$ pip install mysqlclient-1.3.10.cp27m-win32.whl
you can see mysqlclient installed successfully.