Python Uwsgi Unable to install and compile error handling methods

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.