【已完成】python项目mysqlclient,安装了还是提示没有安装
为了能快速了解并处理您的问题,请提供以下基础信息:面板、插件版本:9.2系统版本:
问题描述:mysqlclient
相关截图(日志、错误):
困扰一天,还是没有解决!
我也没解决,论坛方法都试了一遍 您好,到您的虚拟环境下使用对应的pip重新安装下试试
比如我使用的是3.10
/www/server/pyporject_evn/versions/3.10.0/bin/pip3 install -I mysqlclient 傅半仙 发表于 2024-10-22 17:30
我也没解决,论坛方法都试了一遍
您好,上面的方法有执行吗?再安装mysqlclient 的时候提示什么呢? 大炮运维V587 发表于 2024-10-22 18:19
您好,上面的方法有执行吗?再安装mysqlclient 的时候提示什么呢?
Defaulting to user installation because normal site-packages is not writeable
Collecting mysqlclient
Using cached mysqlclient-2.2.5.tar.gz (90 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... error
error: subprocess-exited-with-error
× 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.
Trying pkg-config --exists perconaserverclient
Command 'pkg-config --exists perconaserverclient' returned non-zero exit status 1.
Traceback (most recent call last):
File "/www/server/pyporject_evn/versions/3.12.7/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
main()
File "/www/server/pyporject_evn/versions/3.12.7/lib/python3.12/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/versions/3.12.7/lib/python3.12/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-me0li3nv/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 332, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=[])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/pip-build-env-me0li3nv/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 302, in _get_build_requires
self.run_setup()
File "/tmp/pip-build-env-me0li3nv/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 318, 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. 傅半仙 发表于 2024-10-23 10:42
Defaulting to user installation because normal site-packages is not writeable
Collecting mysqlclie ...
您好,您联系下我们客服 同样的问题,在线等答案 你解决了吗 您好,这个问题如果没有解决的话,请重新发帖哈,这篇帖子就关闭了
页:
[1]