1. 找到uwsgi的位置
which uwsgi
(WebTagging) [root@Alex backend-flask]# which uwsgi
/usr/anaconda/Anaconda/envs/WebTagging/bin/uwsgi
  1. ldd查看缺少的包
ldd /usr/anaconda/Anaconda/envs/WebTagging/bin/uwsgi

uwsgi: error while loading shared libraries: libicui18n.so.58: cannot open shared object file_flask
发现 uwsgi 找不到三个包

  1. 建立软连接
ln -s /usr/anaconda/Anaconda/lib/libicui18n.so.58 /lib64/libicui18n.so.58
ln -s /usr/anaconda/Anaconda/lib/libicuuc.so.58 /lib64/libicuuc.so.58
ln -s /usr/anaconda/Anaconda/lib/libicudata.so.58 /lib64/libicudata.so.58
  1. 复制libstdc++.so.6
cp /usr/anaconda/Anaconda/lib/libstdc++.so.6 /lib64/
  1. complete
ldd /usr/anaconda/Anaconda/envs/WebTagging/bin/uwsgi