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
 

技术
今日推荐
PPT
阅读数 126
下载桌面版
GitHub
百度网盘(提取码:draw)
Gitee
云服务器优惠
阿里云优惠券
腾讯云优惠券
华为云优惠券
站点信息
问题反馈
邮箱:ixiaoyang8@qq.com
QQ群:766591547
关注微信