Contents

how to install mysqlclient in python2/python3 on windows 10

Contents

how  to install mysqlclient in python2/python3 on windows 10
Installing mysqlclient on windows is very cumbersome.
here is a simple way :

  1. According to the version of python, download the corresponding file on this page.
       - python2.7:
         - 32 bit: mysqlclient‑[version]‑cp27‑cp27m‑win32.whl
         - 64 bit: mysqlclient‑[version]‑cp27‑cp27m‑win_amd64.whl
       - python3.7:
         - 32 bit: mysqlclient‑[version]‑cp37‑cp37m‑win32.whl
         - 64 bit: mysqlclient‑[version]‑cp37‑cp37m‑win_amd64.whl
    2.  install it
       - command: pip install  mysqlclient‑[version]‑cp37‑cp37m‑xxx.whl
    3.  done