最初我得到了一个名为vcvarsall.bat的错误。为了解决这个问题,我安装了Microsoft visual studio 14.之后我得到的错误是
C:\Users\...\Desktop\mysqlclient-1.3.7>python setup.py install
running install
running bdist_egg
running egg_info
writing top-level names to mysqlclient.egg-info\top_level.txt
writing mysqlclient.egg-info\PKG-INFO
writing dependency_links to mysqlclient.egg-info\dependency_links.txt
reading manifest file 'mysqlclient.egg-info\SOURCES.txt'
. ..
...
_mysql.c
_mysql.c(29): fatal error C1083: Cannot open include file: 'my_config.h': No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\
cl.exe' failed with exit status 2
我不知道如何继续。我使用的是Windows 8和Python 3.5。
答案 0 :(得分:0)
mysqlclient使用MySQL的库。
对于Windows,请在此处安装libmysqlclient:https://dev.mysql.com/downloads/connector/c/
然后尝试重新打开你的cmd。