fatal error: Python.h: No such file or directory

阿里云装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
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/
fatal error: Python.h: No such file or directory_第1张图片

查了一下解决办法:

yum install python-devel.x86_64

之后再运行安装,问题解决。
fatal error: Python.h: No such file or directory_第2张图片

微信号

你可能感兴趣的:(阿里云ECS,DJANGO)