pip3 install uwsgi 报错
[thread 1][gcc -std=gnu11 -pthread] plugins/transformation_offload/offload.o
[thread 0][gcc -std=gnu11 -pthread] plugins/router_memcached/router_memcached.o
[thread 1][gcc -std=gnu11 -pthread] plugins/router_redis/router_redis.o
[thread 0][gcc -std=gnu11 -pthread] plugins/router_hash/router_hash.o
[thread 1][gcc -std=gnu11 -pthread] plugins/router_expires/expires.o
[thread 0][gcc -std=gnu11 -pthread] plugins/router_metrics/plugin.o
[thread 1][gcc -std=gnu11 -pthread] plugins/transformation_template/tt.o
[thread 0][gcc -std=gnu11 -pthread] plugins/stats_pusher_socket/plugin.o
*** uWSGI linking ***
gcc -std=gnu11 -pthread -o build/bdist.linux-x86_64/wheel/uWSGI-2.0.22.data/scripts/uwsgi core/utils.o core/protocol.o core/socket.o core/logging.o core/master.o core/master_utils.o core/emperor.o core/notify.o
......
ugins/stats_pusher_socket/plugin.o -lpthread -lm -rdynamic -ldl -lz -lpcre -luuid -lssl -lcrypto -lxml2 -lz -lm -ldl -lpthread -ldl -lutil -lm /www/server/python_manager/versions/3.11.4/lib/python3.11/config-3.11-x86_64-linux-gnu/libpython3.11.a -lutil -lcrypt
*** error linking uWSGI ***
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for uwsgi
Failed to build uwsgi
ERROR: Could not build wheels for uwsgi, which is required to install pyproject.toml-based projects
可尝试卸载pcre-devel
yum remove pcre-devel
最后再尝试安装
pip3 install uwsgi -i http://mirrors.aliyun.com/pypi/simple/