宝塔用户_kaqmvj 发表于 2024-1-9 10:59:08

mysqlclient安装失败

为了能快速了解并处理您的问题,请提供以下基础信息:面板、插件版本:mysqlclient==2.2.1
系统版本:   8.0.5 腾讯云专享
问题描述:django 安装mysqlclitent 失败,另外venv 目录如何进入?
相关截图(日志、错误):



× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─>
      Trying pkg-config --exists mysqlclient
      Command 'pkg-config --exists mysqlclient' returned non-zero exit status 1.
      Trying pkg-config --exists mariadb
      Command 'pkg-config --exists mariadb' returned non-zero exit status 1.
      Trying pkg-config --exists libmariadb
      Command 'pkg-config --exists libmariadb' returned non-zero exit status 1.
      Traceback (most recent call last):
      File "/www/server/pyporject_evn/pdd_goods8090_venv/lib/python3.8/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
          main()
      File "/www/server/pyporject_evn/pdd_goods8090_venv/lib/python3.8/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
      File "/www/server/pyporject_evn/pdd_goods8090_venv/lib/python3.8/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel
          return hook(config_settings)
      File "/tmp/pip-build-env-7ia7uih8/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 325, in get_requires_for_build_wheel
          return self._get_build_requires(config_settings, requirements=['wheel'])
      File "/tmp/pip-build-env-7ia7uih8/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 295, in _get_build_requires
          self.run_setup()
      File "/tmp/pip-build-env-7ia7uih8/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 311, in run_setup
          exec(code, locals())
      File "<string>", line 155, in <module>
      File "<string>", line 49, in get_config_posix
      File "<string>", line 28, in find_package_name
      Exception: Can not find valid pkg-config name.
      Specify MYSQLCLIENT_CFLAGS and MYSQLCLIENT_LDFLAGS env vars manually
      

note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.




页: [1]
查看完整版本: mysqlclient安装失败