sbinet / go-python

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

Error reporting for execute command under win10 #109

Closed Suceru closed 3 years ago

Suceru commented 3 years ago

Error reporting for execute command under win10

C:\Users\12464> go get github.com/sbinet/go-python
# github.com/sbinet/go-python
In file included from D:\Go\src\github.com\sbinet\go-python\capi.go:3:
./go-python.h:4:10: fatal error: Python.h: No such file or directory
 #include "Python.h"
          ^~~~~~~~~~

The python installation directory is C:\Users\12464\AppData\Local\Programs\Python\Python38 include directory is C:\Users\12464\AppData\Local\Programs\Python\Python38\include

Tachy0nOwO commented 3 years ago

I met the same problem, could you tell me the solution if you solve it?

equisde commented 3 years ago

i have this exact problem my install directory is C:\Python39 include is in C:\Python39\include

sbinet commented 3 years ago

sbinet/go-python is for CPython-2.

you can try https://github.com/DataDog/go-python3 for CPython-3.