[英]I tried to install emcee and corner for python (linux). I got missing 'python.h' during installation. How to fix the corner installation?
[英]How to fix missing “Python.h” on Arch Linux?
在 C 文件中包含“Python.h”:
#include <Python.h>
给出Python.h: No such file or directory
错误。 我查找了其他有同样问题的人,但没有人直接回答如何在拱 Linux 上安装 python*-dev(python2 和 python3)。 顺便说一句, 这个答案没有拱形安装命令。
原来“Python.h”已经安装在 Arch 上,但只是不在标准 header 文件位置gcc $(pkg-config --cflags python3) testing.c -o testing
解决了它。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.