linux centos7.x 安装 pip insall uwsgi 报错 解决办法

安装 pip insall uwsgi 报错


note: This error originates from a subprocess, and is likely not a problem with pip.

  ERROR: Failed building wheel for uwsgi

  Running setup.py clean for uwsgi

Failed to build uwsgi

ERROR: Could not build wheels for uwsgi, which is required to install pyproject.toml-based projects



解决办法:安装相关工具


yum install -y gcc* pcre-devel openssl-devel
yum install -y python-devel



安装稍微低点版本的uwsgi


pip install uwsgi 默认安装的是 uwsgi 2.0.24 安装失败


后面换了 2.0.18 版本安装成功

pip install uwsgi==2.0.18 -i https://pypi.tuna.tsinghua.edu.cn/simple