pip3 install uwsgi 报错

core/routing.o: In function `uwsgi_route_condition_regexp':
  routing.c:(.text+0x365c): undefined reference to `pcre_free_study'
  routing.c:(.text+0x3680): undefined reference to `pcre_free_study'
  collect2: ld returned 1 exit status
  *** error linking uWSGI ***
  ----------------------------------------
  ERROR: Failed building wheel for uwsgi
  Running setup.py clean for uwsgi
Failed to build uwsgi
DEPRECATION: Could not build wheels for uwsgi which do not use PEP 517. pip will fall back to legacy 'setup.py install' for these. pip 21.0 will remove support for this functionality. A possible replacement is to fix the wheel build issue reported above. You can find discussion regarding this at https://github.com/pypa/pip/issues/8368.
Installing collected packages: uwsgi
    Running setup.py install for uwsgi ... error

  

最后发现是pcre-devel在捣鬼,卸载

yum remove pcre-devel

  

关联卸载了两个东西

Erasing    : php56w-devel-5.6.40-1.w6.x86_64                                                                                                     1/2 
Erasing    : pcre-devel-7.8-7.el6.x86_64

再安装,没问题:

python36 -m pip install  uwsgi

  

原文地址:https://www.cnblogs.com/dwj192/p/13410243.html