
安装mysqlclient 报错如上图:
_mysql.c
_mysql.c(29): fatal error C1083: Cannot open include file: ‘mysql.h’: No such
file or directory
error: command ‘E:\VS2017\VC\Tools\MSVC\14.14.26428\bin\HostX86\x64\c
l.exe’ failed with exit status 2
Failed building wheel for mysqlclient
Running setup.py clean for mysqlclient
Failed to build mysqlclient
Installing collected packages: mysqlclient
Running setup.py install for mysqlclient … error
Complete output from command e:\virtualenv\jobbole_spider_2\scripts\python.e
xe -u -c “import setuptools, tokenize;file=‘C:\Users\majun\AppData\Local
\Temp\pip-install-9jpbmln9\mysqlclient\setup.py’;f=getattr(tokenize, ‘open’,
open)(file);code=f.read().replace(’\r\n’, ‘\n’);f.close();exec(compile(code
, file, ‘exec’))” install --record C:\Users\majun\AppData\Local\Temp\pip-rec
ord-ckpc1qbx\install-record.txt --single-version-externally-managed --compile –
install-headers e:\virtualenv\jobbole_spider_2\include\site\python3.6\mysqlclien
t:
老师这个是什么问题
带你彻底掌握Scrapy,用Django+Elasticsearch搭建搜索引擎
了解课程