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

anaconda 虚拟环境pip安装uwsgi后,运行报错:

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

解决办法:

#找到所有的系统中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咯~

猜你喜欢

转载自blog.csdn.net/weixin_33127753/article/details/91958254
今日推荐