【发布时间】:2018-09-01 17:08:03
【问题描述】:
我使用这个命令来安装 MySQL 客户端:
pip install mysqlclient
然后我看到了这个问题:
运行 build_ext
构建“_mysql”扩展
错误:需要 Microsoft Visual C++ 10.0。使用“Microsoft Windows SDK 7.1”获取它:www.microsoft.com/download/details.aspx?id=8279
清理中... 命令 C:\Python34\python.exe -c "import setuptools, tokenize;file='C:\Users\Jayed\AppData\Local\Temp\pip_build_Jayed\mysqlclient\setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" 安装 --record C:\Users\Jayed\AppData\Local\Temp\pip-l4c6dhkk-record\install-record.txt --single-version-externally-managed --compile 在 C:\Users\Jayed\AppData\Local\Temp\pip_build_Jayed\mysqlclient 中出现错误代码 1 失败 在 C:\Users\Jayed\pip\pip.log 中存储失败的调试日志
【问题讨论】:
-
该错误准确地告诉您需要做什么:需要 Microsoft Visual C++ 10.0。通过“Microsoft Windows SDK 7.1”获取它:www.microsoft.com/download/details.aspx?id=8279
标签: python mysql windows server installation