尝试在Sierra 10.12.6中运行uwsgi,我收到以下错误:
dyld: Library not loaded: @rpath/libexpat.1.dylib
Referenced from: /usr/local/bin/uwsgi
Reason: Incompatible library version: uwsgi requires version 8.0.0 or later, but libexpat.1.dylib provides version 7.0.0
Abort trap: 6
我试过了:
brew update
brew reinstall expat
并用pip重新安装uwsgi,但没有运气。知道解决方案会是什么吗?
答案 0 :(得分:0)
在激活的虚拟环境中,通过忽略缓存来强制重新安装UWSGI并强制重建所有UWSGI dep。运行:
pip install uwsgi -I --no-cache-dir
对我来说就像是一种魅力。
答案 1 :(得分:0)
您可以从conda安装。要使用conda安装此软件包,请执行以下操作之一:
conda install -c conda-forge uwsgi
conda install -c conda-forge/label/gcc7 uwsgi
conda install -c conda-forge/label/broken uwsgi
conda install -c conda-forge/label/cf201901 uwsgi
它为我工作!