收集mysqlclient 使用缓存的https://files.pythonhosted.org/packages/ec/fd/83329b9d3e14f7344d1cb31f128e6dbba70c5975c9e57896815dbb1988ad/mysqlclient-1.3.13.tar.gz 安装收集的软件包:mysqlclient 运行mysqlclient的setup.py install:已启动 运行mysqlclient的setup.py install:状态为“错误” 从命令C:\ Users \ jaswitha \ PycharmProjects \ FirstProj \ venv \ Scripts \ python.exe -u -c“ import setuptools,tokenize; file ='C:\ Users \ jaswitha \ AppData \ Local \ Temp \ pycharm-packaging \ 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 \ jaswitha \ AppData \ Local \ Temp \ pip-5mltk4fj-record \ install-record.txt-单一版本-外部管理-编译--install-headers C:\ Users \ jaswitha \ PycharmProjects \ FirstProj \ venv \ include \ site \ python3.6 \ mysqlclient: C:\ Users \ jaswitha \ AppData \ Local \ Programs \ Python \ Python36 \ lib \ distutils \ dist.py:261:UserWarning:未知分发选项:“ long_description_content_type” warnings.warn(msg) 运行安装 运行构建 运行build_py 创建版本 创建build \ lib.win-amd64-3.6 复制_mysql_exceptions.py-> build \ lib.win-amd64-3.6 创建build \ lib.win-amd64-3.6 \ MySQLdb 复制MySQLdb__init__.py-> build \ lib.win-amd64-3.6 \ MySQLdb 复制MySQLdb \ compat.py-> build \ lib.win-amd64-3.6 \ MySQLdb 复制MySQLdb \ connections.py-> build \ lib.win-amd64-3.6 \ MySQLdb 复制MySQLdb \ converters.py-> build \ lib.win-amd64-3.6 \ MySQLdb 复制MySQLdb \ cursors.py-> build \ lib.win-amd64-3.6 \ MySQLdb 复制MySQLdb \ release.py-> build \ lib.win-amd64-3.6 \ MySQLdb 复制MySQLdb \ times.py-> build \ lib.win-amd64-3.6 \ MySQLdb 创建build \ lib.win-amd64-3.6 \ MySQLdb \ constants 复制MySQLdb \ constants__init __。py-> build \ lib.win-amd64-3.6 \ MySQLdb \ constants 复制MySQLdb \ constants \ CLIENT.py-> build \ lib.win-amd64-3.6 \ MySQLdb \ constants 复制MySQLdb \ constants \ CR.py-> build \ lib.win-amd64-3.6 \ MySQLdb \ constants 复制MySQLdb \ constants \ ER.py-> build \ lib.win-amd64-3.6 \ MySQLdb \ constants 复制MySQLdb \ constants \ FIELD_TYPE.py-> build \ lib.win-amd64-3.6 \ MySQLdb \ constants 复制MySQLdb \ constants \ FLAG.py-> build \ lib.win-amd64-3.6 \ MySQLdb \ constants 复制MySQLdb \ constants \ REFRESH.py-> build \ lib.win-amd64-3.6 \ MySQLdb \ constants 警告:build_py:禁用字节编译,正在跳过。
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\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:\Users\jaswitha\PycharmProjects\FirstProj\venv\include -IC:\Users\jaswitha\AppData\Local\Programs\Python\Python36\include -IC:\Users\jaswitha\AppData\Local\Programs\Python\Python36\include /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\\cl.exe' failed with exit status 2
----------------------------------------
命令“ C:\ Users \ jaswitha \ PycharmProjects \ FirstProj \ venv \ Scripts \ python.exe -u -c”导入设置工具,标记化; 文件 ='C:\ Users \ jaswitha \ AppData \ Local \ Temp \ pycharm-packaging \ 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 \ jaswitha \ AppData \ Local \ Temp \ pip-5mltk4fj-record \ install-record.txt-单个版本-外部管理-编译--install-headers C:\ Users \ jaswitha \ PycharmProjects \ FirstProj \ venv \ include \ site \ python3.6 \ mysqlclient“在C:\ Users \ jaswitha \ AppData \ Local \ Temp \ pycharm-packaging \ mysqlclient \中失败,错误代码为1 您正在使用pip版本9.0.3,但是版本10.0.1可用。 您应该考虑通过“ python -m pip install --upgrade pip”命令进行升级。