Recently, the installation of mysqlclient has been error, export to find information, pondering, roughly solve the following:
First, error hints
_MYSQL.C: Fatal error C1083: Cannot open include file: "Mysql.h": no such file
or directory
Error:command ' C:\Program Files (x86) \microsoft Visual Studio 14.0\vc\b
In\x86_amd64\cl.exe ' failed with exit status 2
Second, the question of thinking:
May be due to the Mysqlclient official website version too much, and Pip also do not know how to choose the cause of???
Third, solve the problem
1, from the official website download the appropriate version o Web links, such as I am in 64-bit WIN8 installed under the python3.7, select MYSQLCLIENT?1.3.13?CP37?CP37M?WIN_AMD64.WHL can be;
2. Install WHEEL:PIP installed wheel in this machine
3, in the 1th download MYSQLCLIENT?1.3.13?CP37?CP37M?WIN_AMD64.WHL in the folder in which to execute: Pip install Mysqlclient?1.3.13?cp37?cp37m?win_ Amd64.whl
Can.
Solutions to mysqlclient installation errors in python3.7