ERROR: Failed building wheel for mysqlclient error resolution

wrong description

ERROR: Failed building wheel for mysqlclient
insert image description here

Solution

Check the error message carefully, and find that the problem is that there is no MySQL dependency library in the machine . The easiest way is to directly download the .whl file of the relevant package, and then pip install.
Download website: https://www.lfd.uci. edu/~gohlke/pythonlibs/
insert image description here

As shown in the figure, according to your own operating system and python version, download the corresponding mysqlcline whl file , switch to the folder where the whl file is located, and enter:

pip install mysqlclient-1.4.6-cp36-cp36m-win_amd64.whl

It can be seen that the installation is successful.
insert image description here
Similar to the problem of online installation of dependent libraries, you can also search for the corresponding whl file on the website.

Guess you like

Origin blog.csdn.net/qq_52109814/article/details/128236960