sbinet / go-python

naive go bindings to the CPython2 C-API
Other
1.52k stars 138 forks source link

go get report errors #101

Closed ttzc closed 1 year ago

ttzc commented 4 years ago

Wrong information:

go-python

In file included from .\capi.go:3:0: ./go-python.h:4:20: fatal error: Python.h: No such file or directory

include "Python.h"

                ^

compilation terminated

huangll commented 2 years ago

I got the same mistake。 I‘m build on windows 10.

E:\work\go\go-common-util>go get github.com/sbinet/go-python

github.com/sbinet/go-python

In file included from ..\pkg\mod\github.com\sbinet\go-python@v0.1.0\capi.go:3: ./go-python.h:4:10: fatal error: Python.h: No such file or directory

include "Python.h"

      ^~~~~~~~~~

compilation terminated.

EldersJavas commented 2 years ago

same


# github.com/sbinet/go-python
In file included from D:\GOPATH\pkg\mod\github.com\sbinet\go-python@v0.1.0\capi.go:3:
./go-python.h:4:10: fatal error: Python.h: No such file or directory
    4 | #include "Python.h"
      |          ^~~~~~~~~~
compilation terminated.
EniMusguera commented 1 year ago

what can i do ?

sbinet commented 1 year ago

instructions for the compilation failures are noted on the README:

these compilation failures usually boil down to cgo not being able to locate the CPython development headers. one needs to: