go-python3
go-python3 copied to clipboard
error when go get and when run example.go
Hi I can run sbinet in my ubuntu18.0.4 with Python2. But now I want to use Python3. So I tried to go get this package. Then I got the following error:
I tried to run the example.go angway. Only to got the same error.
Can anyone help me?
have you solved your problem? I have the same error.
NO, I think I will choose sbinet.
Same problem here. Ubuntu 18.04.2 LTS 64 bit
Edit:
Found this issue.
Installing python3.7-dev through apt-get hasn't fixed it yet.
Will do some more digging later to see if I can figure out what's wrong.
Strangely enough, this fork installs properly: https://github.com/alexyz79/go-python3
I got the same issue on Ubuntu, python3-dev doesn't help. really strange.
Maybe try to clean your cache: https://github.com/DataDog/go-python3/issues/38#issuecomment-764711687
And I’ve posted an Ubuntu 20.04 example here that works for me: https://github.com/DataDog/go-python3/issues/40#issuecomment-893623375
Maybe try to clean your cache: #38 (comment)
And I’ve posted an Ubuntu 20.04 example here that works for me: #40 (comment)
Thanks, Christian! I just fixed the issue! After setting the PKG_CONFIG_PATH it works. My python3.pc is under the anaconda3/lib/pkgconfig folder, it seems the previous pkgconfig found another .pc file?