티스토리 뷰

728x90
Building wheels for collected packages: mysqlclient
  Building wheel for mysqlclient (pyproject.toml) ... error
  error: subprocess-exited-with-error
  
  × Building wheel for mysqlclient (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [46 lines of output]
      Trying pkg-config --exists mysqlclient
      Command 'pkg-config --exists mysqlclient' returned non-zero exit status 1.
      Trying pkg-config --exists mariadb
      # Options for building extension module:
        extra_compile_args: ['-I/opt/homebrew/Cellar/mariadb/11.2.2/include/mysql', '-std=c99']
        extra_link_args: ['-L/opt/homebrew/Cellar/mariadb/11.2.2/lib', '-lmariadb', '-lssl', '-lcrypto']
        define_macros: [('version_info', (2, 2, 1, 'final', 0)), ('__version__', '2.2.1')]
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build/lib.macosx-12-arm64-cpython-311
      creating build/lib.macosx-12-arm64-cpython-311/MySQLdb
      copying src/MySQLdb/release.py -> build/lib.macosx-12-arm64-cpython-311/MySQLdb
      copying src/MySQLdb/cursors.py -> build/lib.macosx-12-arm64-cpython-311/MySQLdb
      copying src/MySQLdb/connections.py -> build/lib.macosx-12-arm64-cpython-311/MySQLdb
      copying src/MySQLdb/__init__.py -> build/lib.macosx-12-arm64-cpython-311/MySQLdb
      copying src/MySQLdb/times.py -> build/lib.macosx-12-arm64-cpython-311/MySQLdb
      copying src/MySQLdb/converters.py -> build/lib.macosx-12-arm64-cpython-311/MySQLdb
      copying src/MySQLdb/_exceptions.py -> build/lib.macosx-12-arm64-cpython-311/MySQLdb
      creating build/lib.macosx-12-arm64-cpython-311/MySQLdb/constants
      copying src/MySQLdb/constants/FLAG.py -> build/lib.macosx-12-arm64-cpython-311/MySQLdb/constants
      copying src/MySQLdb/constants/CLIENT.py -> build/lib.macosx-12-arm64-cpython-311/MySQLdb/constants
      copying src/MySQLdb/constants/__init__.py -> build/lib.macosx-12-arm64-cpython-311/MySQLdb/constants
      copying src/MySQLdb/constants/ER.py -> build/lib.macosx-12-arm64-cpython-311/MySQLdb/constants
      copying src/MySQLdb/constants/CR.py -> build/lib.macosx-12-arm64-cpython-311/MySQLdb/constants
      copying src/MySQLdb/constants/FIELD_TYPE.py -> build/lib.macosx-12-arm64-cpython-311/MySQLdb/constants
      running egg_info
      writing src/mysqlclient.egg-info/PKG-INFO
      writing dependency_links to src/mysqlclient.egg-info/dependency_links.txt
      writing top-level names to src/mysqlclient.egg-info/top_level.txt
      reading manifest file 'src/mysqlclient.egg-info/SOURCES.txt'
      reading manifest template 'MANIFEST.in'
      adding license file 'LICENSE'
      writing manifest file 'src/mysqlclient.egg-info/SOURCES.txt'
      copying src/MySQLdb/_mysql.c -> build/lib.macosx-12-arm64-cpython-311/MySQLdb
      running build_ext
      building 'MySQLdb._mysql' extension
      creating build/temp.macosx-12-arm64-cpython-311
      creating build/temp.macosx-12-arm64-cpython-311/src
      creating build/temp.macosx-12-arm64-cpython-311/src/MySQLdb
      clang -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall "-Dversion_info=(2, 2, 1, 'final', 0)" -D__version__=2.2.1 -I/Users/seunggabi/seunggabi/workspace/server/batch/.venv/include -I/opt/homebrew/opt/python@3.11/Frameworks/Python.framework/Versions/3.11/include/python3.11 -c src/MySQLdb/_mysql.c -o build/temp.macosx-12-arm64-cpython-311/src/MySQLdb/_mysql.o -I/opt/homebrew/Cellar/mariadb/11.2.2/include/mysql -std=c99
      clang -bundle -undefined dynamic_lookup build/temp.macosx-12-arm64-cpython-311/src/MySQLdb/_mysql.o -o build/lib.macosx-12-arm64-cpython-311/MySQLdb/_mysql.cpython-311-darwin.so -L/opt/homebrew/Cellar/mariadb/11.2.2/lib -lmariadb -lssl -lcrypto
      ld: library 'ssl' not found
      clang: error: linker command failed with exit code 1 (use -v to see invocation)
      error: command '/usr/bin/clang' failed with exit code 1
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for mysqlclient
Failed to build mysqlclient
ERROR: Could not build wheels for mysqlclient, which is required to install pyproject.toml-based projects

https://stackoverflow.com/questions/76875507/can-not-install-apache-airflow-providers-mysql-pkg-config-error

 

Can not install apache-airflow-providers-mysql: pkg-config error

I'm using Debian/Ubuntu, and I am trying to install an Airflow provider in my Python virtual environment: $ pip install apache-airflow-providers-mysql error: subprocess-exited-with-error × Get...

stackoverflow.com

 

728x90

'공부' 카테고리의 다른 글

[CentOS] mysql_config not found with mysql-community on CentOS 7  (1) 2024.01.29
[airflow] connections add  (0) 2024.01.29
[shell] ${@:$n:1}  (1) 2024.01.29
[sshd] service sshd restart  (0) 2024.01.29
[airflow] airflow db init  (0) 2024.01.29
댓글