我正在使用 Debian/Ubuntu,并且尝试在我的 Python 虚拟环境中安装 Airflow 提供程序:
\n$ pip install apache-airflow-providers-mysql\n error: subprocess-exited-with-error\n\n \xc3\x97 Getting requirements to build wheel did not run successfully.\n \xe2\x94\x82 exit code: 1\n \xe2\x95\xb0\xe2\x94\x80> [24 lines of output]\n /bin/sh: 1: pkg-config: not found\n /bin/sh: 1: pkg-config: not found\n Trying pkg-config --exists mysqlclient\n Command 'pkg-config --exists mysqlclient' returned non-zero exit status 127.\n Trying pkg-config --exists mariadb\n Command 'pkg-config --exists mariadb' returned non-zero exit status 127.\n Traceback (most recent call last):\n File "/home/user/airflow/airflow_env/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>\n main()\n …Run Code Online (Sandbox Code Playgroud)