首页  >  问答  >  正文

python - !!! no internal routing support, rebuild with pcre support !!!

在Mac下,使用nginx+uwsgi部署django,感觉要成功了,就遇到这个‘!!! no internal routing support, rebuild with pcre support !!!’,上Stack Overflow上搜到答案了,但是那是Ubuntu上的,如下:

我在终端输入apt-get时,提示没有该指令,原谅我对Mac不熟。。
这个问题弄好久了,就是不知道怎么破,求助各位了。

黄舟黄舟2741 天前6747

全部回复(1)我来回复

  • 迷茫

    迷茫2017-04-17 14:28:17

    我解决了,原因是找不到gcc。我卸载了brew安装的uwsgi,用pip install uwsgi才发现的,安装的时候提示说‘Exception: you need a C compiler to build uWSGI’,上Stack Overflow找了下,有先例,用‘sudo CC=gcc pip install uwsgi’,然后问题就解决了。

    回复
    0
  • 取消回复