Before installing UWSGI The compile step error, because earlier, some error code has not been found, the Internet to find some error information, now the solution to share.
Environment: CentOS Release 6.4 Python 2.7.3
The report is similar to the following error code, mostly because Setuptools is not installed, the installation of Setuptools is good
bash-3.2last): "setup.py"6in Module
The report is similar to the following error code, mostly because the python-devel is not installed properly, re-install the good
NfileIncluded from PLUGINS/PYTHON/PYTHON_PLUGIN.C:1: Plugins/python/uwsgi_python.h:2: -: Error:python.h:no Suchfileor directory plugins/python/uwsgi_python.h:4: -: Error:frameobject.h:no Suchfileor di rectory infileIncluded from PLUGINS/PYTHON/PYTHON_PLUGIN.C:1: Plugins/python/uwsgi_python.h: the: error:expected?1?7?1? 7before?1?7?1? 7token Plugins/python/uwsgi_python.h: +: error:expected?1?7?1? 7before?1?7?1? 7token
In file included from plugins/python/python_plugin.c:1:0:
plugins/python/uwsgi_python.h:2:20: 致命错误:Python.h:没有那个文件或目录
Before you install UWSGI, make sure that Libxml2,gcc,python-devel is installed correctly
Python Uwsgi Unable to install and compile error handling methods