阿里云装uwsgi报错:
系统centos7.4 64位
python 2.7.5
plugins/python/uwsgi_python.h:2:20: fatal error: Python.h: No such file or directory
#include <Python.h>
Command “/usr/bin/python2 -u -c “import setuptools, tokenize;file=’/tmp/pip-build-r2TLym/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-JwT5ox-record/install-record.txt --single-version-externally-managed --compile” failed with error code 1 in /tmp/pip-build-r2TLym/uwsgi/
查了一下解决办法:
yum install python-devel.x86_64
之后再运行安装,问题解决。
