uwsgi error while loading shared libraries: libpcre.so.1

After anaconda virtual environment pip install uwsgi, run error:

uwsgi: error while loading shared libraries: libpcre.so.1: cannot open shared object file: No such file or directory

Solution:

#找到所有的系统中libpcre
find / -name libpcre.so.*
#创建libpcre.so.1软链到/lib下
ln -s /home/anaconda3/lib/libpcre.so.1 /lib
which python
#/home/anaconda3/envs/***/bin/uwsgi

OK now slightly ~

Guess you like

Origin blog.csdn.net/weixin_33127753/article/details/91958254