建设网站的知识,做网站怎么别人搜不出来,郑州网站免费制作,创新的网站建站解决linux 操作系统编译uWSGI源码报错 最近在学习在Linux操作系统中使用uWSGI项目部署django项目,在使用源码安装uWSGI项目的时候报错。
报错如下#xff1a; In file included from plugins/python/python_plugin.c:1:0: plugins/python/uwsgi_python.h:4:20: 致命错误…解决linux 操作系统编译uWSGI源码报错 最近在学习在Linux操作系统中使用uWSGI项目部署django项目,在使用源码安装uWSGI项目的时候报错。
报错如下 In file included from plugins/python/python_plugin.c:1:0: plugins/python/uwsgi_python.h:4:20: 致命错误Python.h没有那个文件或目录 #include Python.h ^ 编译中断。 In file included from plugins/python/pyutils.c:1:0: plugins/python/uwsgi_python.h:4:20: 致命错误Python.h没有那个文件或目录 #include Python.h ^ 编译中断。 make: *** [all] 错误 1 报错原因
操作系统中缺少python的开发包python3-devel python3-devel是指用于开发Python应用程序的Python 3开发包。它包含了Python的开发工具、头文件和库文件以及其他一些用于构建Python扩展模块的工具和文件。 通常情况下如果你想在你的系统上编译和构建Python扩展模块或者你需要在Python应用程序中使用C/C扩展你会需要安装与你的Python版本相对应的开发包。这将允许你在扩展中使用Python C API。 解决方案
yum -y install python3-devel 安装完python3-devel后你就可以使用Python C API来编写C/C扩展以及与Python交互的其他开发工作。
重新编译
make