安装mysqlclient出错

问题:

ERROR: Command errored out with exit status 1:
     command: C:\ProgramData\anaconda3\envs\flask_learn\python.exe -u -c import sys, setuptools, tokenize; sys.argv[0] = ‘""‘C:\\Users\\sewen\\AppData\\Local\\Temp\\pip-install-nyi1
a5bp\\mysqlclient\\setup.py"‘"‘; __file__=‘"‘"C:\\Users\\sewen\\AppData\\Local\\Temp\\pip-install-nyi1a5bp\\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\sewen\AppData\Local\Temp\pip-record-e8inmf7einstall-record.txt --single-version-externally-managed --compile --install-headers C:\ProgramData\anaconda3\envs\flask_learn\Include\mysqlclient         cwd: C:\Users\sewen\AppData\Local\Temp\pip-install-nyi1a5bp\mysqlclient    Complete output (30 lines):
    running install
    running build
    running build_py
    creating build
    creating build\lib.win-amd64-3.6
    copying _mysql_exceptions.py -> build\lib.win-amd64-3.6
    creating build\lib.win-amd64-3.6\MySQLdb
    copying MySQLdb\__init__.py -> build\lib.win-amd64-3.6\MySQLdb
    copying MySQLdb\compat.py -> build\lib.win-amd64-3.6\MySQLdb
    copying MySQLdb\connections.py -> build\lib.win-amd64-3.6\MySQLdb
    copying MySQLdb\converters.py -> build\lib.win-amd64-3.6\MySQLdb
    copying MySQLdb\cursors.py -> build\lib.win-amd64-3.6\MySQLdb
    copying MySQLdb\release.py -> build\lib.win-amd64-3.6\MySQLdb
    copying MySQLdb\times.py -> build\lib.win-amd64-3.6\MySQLdb
    creating build\lib.win-amd64-3.6\MySQLdb\constants
    copying MySQLdb\constants\__init__.py -> build\lib.win-amd64-3.6\MySQLdb\constants
    copying MySQLdb\constants\CLIENT.py -> build\lib.win-amd64-3.6\MySQLdb\constants
    copying MySQLdb\constants\CR.py -> build\lib.win-amd64-3.6\MySQLdb\constants
    copying MySQLdb\constants\ER.py -> build\lib.win-amd64-3.6\MySQLdb\constants
    copying MySQLdb\constants\FIELD_TYPE.py -> build\lib.win-amd64-3.6\MySQLdb\constants
    copying MySQLdb\constants\FLAG.py -> build\lib.win-amd64-3.6\MySQLdb\constants
    copying MySQLdb\constants\REFRESH.py -> build\lib.win-amd64-3.6\MySQLdb\constants
    running build_ext
    building _mysql extension
    creating build\temp.win-amd64-3.6
    creating build\temp.win-amd64-3.6\Release
    C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Dversion_info=(1,3,13,final,0) -D__version__=1.3.13 "-IC:\Program
Files (x86)\MySQL\MySQL Connector C 6.1\include" -IC:\ProgramData\anaconda3\envs\flask_learn\include -IC:\ProgramData\anaconda3\envs\flask_learn\include "-IC:\Program Files (x86)\Micros
oft Visual Studio 14.0\VC\INCLUDE" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\8.1\include\shared" "-IC:\Program Files (x
86)\Windows Kits\8.1\include\um" "-IC:\Program Files (x86)\Windows Kits\8.1\include\winrt" /Tc_mysql.c /Fobuild\temp.win-amd64-3.6\Release\_mysql.obj /Zl
    _mysql.c
    _mysql.c(29): fatal error C1083: Cannot open include file: mysql.h: No such file or directory
    error: command C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\x86_amd64\\cl.exe failed with exit status 2
    ----------------------------------------
  Rolling back uninstall of mysqlclient
  Moving to c:\programdata\anaconda3\envs\flask_learn\lib\site-packages\mysqlclient-2.0.1.dist-info   from c:\programdata\anaconda3\envs\flask_learn\lib\site-packages\~ysqlclient-2.0.1.dist-info
  Moving to c:\programdata\anaconda3\envs\flask_learn\lib\site-packages\mysqldb   from c:\programdata\anaconda3\envs\flask_learn\lib\site-packages\~ysqldb
ERROR: Command errored out with exit status 1: C:\ProgramData\anaconda3\envs\flask_learn\python.exe -u -c import sys, setuptools, tokenize; sys.argv[0] = ‘""‘C:\\Users\\sewen\\AppDa
ta\\Local\\Temp\\pip-install-nyi1a5bp\\mysqlclient\\setup.py"‘"‘; __file__=‘"‘"C:\\Users\\sewen\\AppData\\Local\\Temp\\pip-install-nyi1a5bp\\mysqlclient\\setup.py"‘"‘;f=getattr(token
ize, "‘"‘open‘"‘", open)(__file__);code=f.read().replace("‘"‘\r\n‘"‘", "‘"‘\n‘"‘");f.close();exec(compile(code, __file__, "‘"‘exec‘"‘")) install --record C:\Users\sewen\AppDat
a\Local\Temp\pip-record-e8inmf7e\install-record.txt --single-version-externally-managed --compile --install-headers C:\ProgramData\anaconda3\envs\flask_learn\Include\mysqlclient Chec
k the logs for full command output.

 

安装mysqlclient出错

上一篇:多次数据库主机由于vm.min_free_kbytes参数导致kswapd0占用CPU高问题分析


下一篇:IVM import vector machine