win10安装mysqlclient出现Cannot open include file: ‘mysql.h’: No such file or directory
欢迎使用Markdown编辑器
在使用python的pip安装安装mysqlclient时,出现如下错误:
|████████████████████████████████| 92kB 3.0MB/s
Building wheels for collected packages: mysqlclient
Building wheel for mysqlclient (setup.py) … error
ERROR: Command errored out with exit status 1:
command: ‘d:\software\python\python.exe’ -u -c ‘import sys, setuptools, tokenize; sys.argv[0] = ‘"’"‘C:\Users\ADMINI~1\AppData\Local\Tem
p\pip-install-b0z8l_jf\mysqlclient\setup.py’"’"’; file=’"’"‘C:\Users\ADMINI~1\AppData\Local\Temp\pip-install-b0z8l_jf\mysqlclient
\setup.py’"’"’;f=getattr(tokenize, ‘"’"‘open’"’"’, open)(file);code=f.read().replace(’"’"’\r\n’"’"’, ‘"’"’\n’"’"’);f.close();exec(compile(co
de, file