![](/img/trans.png)
[英]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.