宝塔用户_hhulzd 发表于 2024-4-13 11:00:40

【待反馈】添加python项目管理器时报错

为了能快速了解并处理您的问题,请提供以下基础信息:面板、插件版本:
8.0.6
系统版本:
CentOS 7
问题描述:
添加项目管理器时报错
相关截图(日志、错误):      Exception: Can not find valid pkg-config name.      Specify MYSQLCLIENT_CFLAGS and MYSQLCLIENT_LDFLAGS env vars manually

运维技术阿闯 发表于 2024-4-13 15:45:28

您好,您说的并未复现,可以的话提供一些报错的截图信息和您的宝塔版本,以及您使用的系统。

宝塔用户_hhulzd 发表于 2024-5-5 19:45:20

下面是错误提示: (因为部署时reqirements.txt中的mysqlclient模块没有自动安装,所以在终端执行pip3 install mysqlclient)
      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.

宝塔用户_hhulzd 发表于 2024-5-8 16:17:48

运维技术阿闯 发表于 2024-4-13 15:45
您好,您说的并未复现,可以的话提供一些报错的截图信息和您的宝塔版本,以及您使用的系统。 ...

下面是错误提示: (因为部署时reqirements.txt中的mysqlclient模块没有自动安装,所以在终端执行pip3 install mysqlclient)
      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.

堡塔运维南一 发表于 2024-5-8 16:36:55

宝塔用户_hhulzd 发表于 2024-5-8 16:17
下面是错误提示: (因为部署时reqirements.txt中的mysqlclient模块没有自动安装,所以在终端执行pip3 ins ...

将您的面板版本更新一下试试
页: [1]
查看完整版本: 【待反馈】添加python项目管理器时报错