Giter Site home page Giter Site logo

go get report errors about go-python HOT 4 CLOSED

ttzc avatar ttzc commented on June 15, 2024
go get report errors

from go-python.

Comments (4)

huangll avatar huangll commented on June 15, 2024

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\[email protected]\capi.go:3:
./go-python.h:4:10: fatal error: Python.h: No such file or directory
#include "Python.h"
^~~~~~~~~~
compilation terminated.

from go-python.

EldersJavas avatar EldersJavas commented on June 15, 2024

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.

from go-python.

EniMusguera avatar EniMusguera commented on June 15, 2024

what can i do ?

from go-python.

sbinet avatar sbinet commented on June 15, 2024

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:

  • make sure these development headers are properly installed
    e.g.: apt install python2-dev on a Debian-like distribution
  • make sure these development headers can be found by cgo (either by installing pkgconfig support files for CPython2, or by editing cgoflags.go in go-python)

from go-python.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.