解决方法"/>
没有Python.h头文件的解决方法
In file included from plugins/python/pyutils.c:1:0:plugins/python/uwsgi_python.h:2:10: fatal error: Python.h: 没有那个文件或目录#include <Python.h>^~~~~~~~~~compilation terminated.In file included from plugins/python/python_plugin.c:1:0:plugins/python/uwsgi_python.h:2:10: fatal error: Python.h: 没有那个文件或目录#include <Python.h>^~~~~~~~~~compilation terminated.
我想有很多人都有过上面的报错情况,例如安装uWSGI?
其实这是你的系统没有安装Python-dev导致的问题,这里以Ubantu为例子只需要输入下面代码就可以解决
# 因为我的是Python2 Python3环境都有所以我是用Python3的时候需要在python后面加上3,根据自身情况选择,如果没有安装双环境那么只需输入python-dev即可
sudo apt-get install python3-dev
Windows如何解决该问题?
windows都安装了pip吧,那就不去要sudo 直接 pip install python3-dev
更多推荐
没有Python.h头文件的解决方法
发布评论