我试图使用pip install命令从python3.7.3安装mysqlclient==1.3.12,遇到以下错误:_mysql.c(29): fatal error C1083: Cannot open include file: 'mysql.h': No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.20.27508\\bin\\HostX86\\x86\\cl.exe' failed with exit status 2
下面是日志:
^{pr2}$
我在stack over flow中尝试了以下可用的解决方案1) Uninstall and installed Python 3.7
2) Installed Visual studio build tools 2019
3) Copied the mysql connector.C 6.1 folder to C:\Program Files (x86)\MySQL
4) Tried to download the whl files of mysql and install from command prompt. installed mysqlclient-1.4.2-cp37-cp37m-win32.whl
我正在开发Windows10 64位和Python3.7.3
有没有其他解决方案可以解决这个问题?在