DataDog / go-python3

Go bindings to the CPython-3 API
MIT License
376 stars 140 forks source link

fatal error: Python.h: No such file or directory #include "Python.h" #32

Closed chinazhenzhen closed 4 years ago

chinazhenzhen commented 4 years ago

Describe what happened: image Python 3.7 Centos6.3 I can not use this please help me

Describe what you expected:

Steps to reproduce the issue:

christian-korneck commented 4 years ago

you need to install pkg-config, make sure that the package that provides the python header files is installed and set the env var PKG_CONFIG_PATH to the dir that contains the python3.pc file.

chinazhenzhen commented 4 years ago

Thanks for your advice. I successfully solved the problem。

zhaoxii commented 2 years ago

I also encountered this problem on windows. Is there any good way?

christian-korneck commented 2 years ago

@zhaoxii it sounds like something’s wrong with your pkgconfig setup. Maybe as a starting point: Here’s a minimal example project for building on Windows with github actions. You can fork it in your own github account, run it and compare it to your own setup.

(We plan to add more examples and docs for topics like this to our community fork of this project as this project gets archived soon).