Command "/usr/bin/python3.6 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-
k1e3s7n4/uwsgi/setup.py';f=getattr(tokenize, 'open', open)(__file__);
code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))"
install --record /tmp/pip-etyfxncs-record/install-record.txt
--single-version-externally-managed --compile" failed with error code 1 in
/tmp/pip-build-k1e3s7n4/uwsgi/
最近华为云租了一台服务器部署django,uwsgi测试。在安装uwsgi的时候报了如上异常。解决办法如下:
step1:安装编译工具
yum install -y gcc* pcre-devel openssl-devel
时间略长,正确安装结果如下:
step2:安装python依赖
yum install -y python-devel
安装时报异常:
那就改成:
yum install -y python3-devel
正确安装结果如下:
step3:pip3 install uwsgi即可。