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

  

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM