pip install uwsgi -I
不会重新编译uwsgi二进制文件,它只会重新安装python egg。您需要使用pcre库重建uwsgi二进制文件。
sudo apt-get install libpcre3 libpcre3-dev
我认为最简单的方法是卸载uwsgi,然后再次运行pip安装程序。
pip uninstall uwsgi
sudo apt-get remove uwsgi
然后
pip install uwsgi
您应该看到pip运行setup.py脚本和一堆编译器消息。最后一条消息应显示以下内容:
################# uWSGI configuration #################
pcre = True
kernel = Linux
malloc = libc
execinfo = False
ifaddrs = True
ssl = True
zlib = True
locking = pthread_mutex
plugin_dir = .
timer = timerfd
yaml = embedded
json = False
filemonitor = inotify
routing = True
debug = False
capabilities = False
xml = libxml2
event = epoll
############## end of uWSGI configuration #############
注意pcre = true现在