python: Failed to install mysqlclient under windows - solution

1. Question:

The installation of mysqlclient under python and windows failed, an error was reported, and the installation failed. (You will always encounter various problems when installing some packages under Windows...)

2. Solve:

 1) Go to https://www.lfd.uci.edu/~gohlke/pythonlibs/ and search for mysqlclient, (Choose the one that corresponds to your python version, my python version is 3.6). Download the wheel package

 2) Install the wheel package offline.

Downloaded the wheel package to D:\Program Files.

 Go toD:\Program Files directory and pip install wheel package.

 problem solved.

 

Guess you like

Origin blog.csdn.net/weixin_39450145/article/details/125215677