我是python的初学者。我正在用django-python做我的大学项目。我想使用MySQL(phpMyAdmin)。我在安装mysqlclient时遇到问题。 错误在下面给出...
C:\ Program Files(x86)\ Microsoft Visual Studio \ 2017 \ BuildTools \ VC \ Tools \ MSVC \ 14.15.26726 \ bin \ HostX86 \ x64 \ cl.exe / c / nologo / Ox / W3 / GL / DNDEBUG / MD -Dversion_info =(1,3,12,'final',0)-D__version __ = 1.3.12“ -IC:\ Program Files(x86)\ MySQL \ MySQL Connector C 6.1 \ include” -Ic :\ users \ bhuvan_02 \ appdata \ local \ programs \ python \ python37 \ include -Ic:\ users \ bhuvan_02 \ appdata \ local \ programs \ python \ python37 \ include“ -IC:\ Program Files(x86)\ Microsoft Visual Studio \ 2017 \ BuildTools \ VC \ Tools \ MSVC \ 14.15.26726 \ include“” -IC:\ Program Files(x86)\ Windows Kits \ 10 \ include \ 10.0.17134.0 \ ucrt“” -IC:\ Program Files(x86 )\ Windows Kits \ 10 \ include \ 10.0.17134.0 \ shared“” -IC:\ Program Files(x86)\ Windows Kits \ 10 \ include \ 10.0.17134.0 \ um“” -IC:\ Program Files(x86)\ Windows Kits \ 10 \ include \ 10.0.17134.0 \ winrt“” -IC:\ Program Files(x86)\ Windows Kits \ 10 \ include \ 10.0.17134.0 \ cppwinrt“ /Tc_mysql.c /Fobuild\temp.win-amd64- 3.7 \ Release_mysql.obj / Zl
_mysql.c _mysql.c(29):致命错误C1083:无法打开包含文件:'mysql.h':无此类文件或目录 错误:命令“ C:\ Program Files(x86)\ Microsoft Visual Studio \ 2017 \ BuildTools \ VC \ Tools \ MSVC \ 14.15.26726 \ bin \ HostX86 \ x64 \ cl.exe”失败,退出状态为2
感谢您提供任何帮助...
答案 0 :(得分:0)
安装旧版本,最新版本1.3.13出现问题。
pip install mysqlclient==1.3.12