mysql connectors安装失败_pip install mysql-connector 安装出错

张瀚漠
2023-12-01

pip3.6 install mysql-connector# 安装不上mysql-connector 了 我的mac上没有这个依赖

Collecting mysql-connector

Using cached mysql-connector-2.2.3.zipInstalling collected packages: mysql-connector

Running setup.pyinstall for mysql-connector ... error

Complete output from command/Library/Frameworks/Python.framework/Versions/3.6/bin/python3.6 -u -c "import setuptools, tokenize;__file__='/private/var/folders/bt/zvnw3lzj0j138lgvj21x728h0000gn/T/pip-build-5ozhefl4/mysql-connector/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /var/folders/bt/zvnw3lzj0j138lgvj21x728h0000gn/T/pip-hx174vot-record/install-record.txt --single-version-externally-managed --compile:

runninginstallNot Installing MySQL C Extension

running build

running build_py

creating build

creating build/lib.macosx-10.6-intel-3.6creating build/lib.macosx-10.6-intel-3.6/mysql

copying lib/mysql/__init__.py -> build/lib.macosx-10.6-intel-3.6/mysql

creating build/lib.macosx-10.6-intel-3.6/mysql/connector

copying lib/mysql/connector/__init__.py -> build/lib.macosx-10.6-intel-3.6/mysql/connector

copying lib/mysql/connector/abstracts.py -> build/lib.macosx-10.6-intel-3.6/mysql/connector

copying lib/mysql/connector/authentication.py -> build/lib.macosx-10.6-intel-3.6/mysql/connector

copying lib/mysql/connector/catch23.py -> build/lib.macosx-10.6-intel-3.6/mysql/connector

copying lib/mysql/connector/charsets.py -> build/lib.macosx-10.6-intel-3.6/mysql/connector

copying lib/mysql/connector/connection.py -> build/lib.macosx-10.6-intel-3.6/mysql/connector

copying lib/mysql/connector/connection_cext.py -> build/lib.macosx-10.6-intel-3.6/mysql/connector

copying lib/mysql/connector/constants.py -> build/lib.macosx-10.6-intel-3.6/mysql/connector

copying lib/mysql/connector/conversion.py -> build/lib.macosx-10.6-intel-3.6/mysql/connector

copying lib/mysql/connector/cursor.py -> build/lib.macosx-10.6-intel-3.6/mysql/connector

copying lib/mysql/connector/cursor_cext.py -> build/lib.macosx-10.6-intel-3.6/mysql/connector

copying lib/mysql/connector/custom_types.py -> build/lib.macosx-10.6-intel-3.6/mysql/connector

copying lib/mysql/connector/dbapi.py -> build/lib.macosx-10.6-intel-3.6/mysql/connector

copying lib/mysql/connector/errorcode.py -> build/lib.macosx-10.6-intel-3.6/mysql/connector

copying lib/mysql/connector/errors.py -> build/lib.macosx-10.6-intel-3.6/mysql/connector

copying lib/mysql/connector/network.py -> build/lib.macosx-10.6-intel-3.6/mysql/connector

copying lib/mysql/connector/optionfiles.py -> build/lib.macosx-10.6-intel-3.6/mysql/connector

copying lib/mysql/connector/pooling.py -> build/lib.macosx-10.6-intel-3.6/mysql/connector

copying lib/mysql/connector/protocol.py -> build/lib.macosx-10.6-intel-3.6/mysql/connector

copying lib/mysql/connector/utils.py -> build/lib.macosx-10.6-intel-3.6/mysql/connector

copying lib/mysql/connector/version.py -> build/lib.macosx-10.6-intel-3.6/mysql/connector

creating build/lib.macosx-10.6-intel-3.6/mysql/connector/locales

copying lib/mysql/connector/locales/__init__.py -> build/lib.macosx-10.6-intel-3.6/mysql/connector/locales

creating build/lib.macosx-10.6-intel-3.6/mysql/connector/locales/eng

copying lib/mysql/connector/locales/eng/__init__.py -> build/lib.macosx-10.6-intel-3.6/mysql/connector/locales/eng

copying lib/mysql/connector/locales/eng/client_error.py -> build/lib.macosx-10.6-intel-3.6/mysql/connector/locales/eng

creating build/lib.macosx-10.6-intel-3.6/mysql/connector/django

copying lib/mysql/connector/django/__init__.py -> build/lib.macosx-10.6-intel-3.6/mysql/connector/django

copying lib/mysql/connector/django/base.py -> build/lib.macosx-10.6-intel-3.6/mysql/connector/django

copying lib/mysql/connector/django/client.py -> build/lib.macosx-10.6-intel-3.6/mysql/connector/django

copying lib/mysql/connector/django/compiler.py -> build/lib.macosx-10.6-intel-3.6/mysql/connector/django

copying lib/mysql/connector/django/creation.py -> build/lib.macosx-10.6-intel-3.6/mysql/connector/django

copying lib/mysql/connector/django/features.py -> build/lib.macosx-10.6-intel-3.6/mysql/connector/django

copying lib/mysql/connector/django/introspection.py -> build/lib.macosx-10.6-intel-3.6/mysql/connector/django

copying lib/mysql/connector/django/operations.py -> build/lib.macosx-10.6-intel-3.6/mysql/connector/django

copying lib/mysql/connector/django/schema.py -> build/lib.macosx-10.6-intel-3.6/mysql/connector/django

copying lib/mysql/connector/django/validation.py -> build/lib.macosx-10.6-intel-3.6/mysql/connector/django

creating build/lib.macosx-10.6-intel-3.6/mysql/connector/fabric

copying lib/mysql/connector/fabric/__init__.py -> build/lib.macosx-10.6-intel-3.6/mysql/connector/fabric

copying lib/mysql/connector/fabric/balancing.py -> build/lib.macosx-10.6-intel-3.6/mysql/connector/fabric

copying lib/mysql/connector/fabric/caching.py -> build/lib.macosx-10.6-intel-3.6/mysql/connector/fabric

copying lib/mysql/connector/fabric/connection.py -> build/lib.macosx-10.6-intel-3.6/mysql/connector/fabric

creating build/lib.macosx-10.6-intel-3.6/mysqlx

copying lib/mysqlx/__init__.py -> build/lib.macosx-10.6-intel-3.6/mysqlx

copying lib/mysqlx/authentication.py -> build/lib.macosx-10.6-intel-3.6/mysqlx

copying lib/mysqlx/charsets.py -> build/lib.macosx-10.6-intel-3.6/mysqlx

copying lib/mysqlx/compat.py -> build/lib.macosx-10.6-intel-3.6/mysqlx

copying lib/mysqlx/connection.py -> build/lib.macosx-10.6-intel-3.6/mysqlx

copying lib/mysqlx/constants.py -> build/lib.macosx-10.6-intel-3.6/mysqlx

copying lib/mysqlx/crud.py -> build/lib.macosx-10.6-intel-3.6/mysqlx

copying lib/mysqlx/dbdoc.py -> build/lib.macosx-10.6-intel-3.6/mysqlx

copying lib/mysqlx/errorcode.py -> build/lib.macosx-10.6-intel-3.6/mysqlx

copying lib/mysqlx/errors.py -> build/lib.macosx-10.6-intel-3.6/mysqlx

copying lib/mysqlx/expr.py -> build/lib.macosx-10.6-intel-3.6/mysqlx

copying lib/mysqlx/protobuf.py -> build/lib.macosx-10.6-intel-3.6/mysqlx

copying lib/mysqlx/protocol.py -> build/lib.macosx-10.6-intel-3.6/mysqlx

copying lib/mysqlx/result.py -> build/lib.macosx-10.6-intel-3.6/mysqlx

copying lib/mysqlx/statement.py -> build/lib.macosx-10.6-intel-3.6/mysqlx

creating build/lib.macosx-10.6-intel-3.6/mysqlx/locales

copying lib/mysqlx/locales/__init__.py -> build/lib.macosx-10.6-intel-3.6/mysqlx/locales

creating build/lib.macosx-10.6-intel-3.6/mysqlx/locales/eng

copying lib/mysqlx/locales/eng/__init__.py -> build/lib.macosx-10.6-intel-3.6/mysqlx/locales/eng

copying lib/mysqlx/locales/eng/client_error.py -> build/lib.macosx-10.6-intel-3.6/mysqlx/locales/eng

running build_ext

# Python architecture:64-bit

# Python ARCH_64BIT: True

Unable tofindProtobuf include directory.----------------------------------------Command"/Library/Frameworks/Python.framework/Versions/3.6/bin/python3.6 -u -c"import setuptools, tokenize;__file__='/private/var/folders/bt/zvnw3lzj0j138lgvj21x728h0000gn/T/pip-build-5ozhefl4/mysql-connector/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))"install --record /var/folders/bt/zvnw3lzj0j138lgvj21x728h0000gn/T/pip-hx174vot-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/bt/zvnw3lzj0j138lgvj21x728h0000gn/T/pip-build-5ozhefl4/mysql-connector/

 类似资料: