-
Notifications
You must be signed in to change notification settings - Fork 140
can this work on windows ? #24
Comments
Hi @BenDerPan, The bindings should work on Windows (I haven't tried), nothing is Linux specific. |
There is a problem though.
Probably we can somehow build some parts using MSVC and other parts using migw32-w64, but I am not sure how can this be achieved. In fact, the issue I bumped into when first tried to build with There is a mingwpy project there which aims to support building python modules with mingw, but it is seemingly dead and doesn't mention any support for python>3.5. |
Same issure on MacOS by using |
first of all thanks a lot for this great project 🙏
this go module works fine for me so far on Windows 10. However, I don't use mingw. This is what I do for Python 3.7 x64:
in a
now we can build our app:
and run it (should work from any shell, i.e. the above env vars don't need to be set for running):
One more note: If you accidentally compile against the wrong Python binaries the go build cache can be "dirty" (happened to me a couple of times). In that case rename/delete the folder that |
hello i'm new to golang i tried to use your instruction i was able to go get the package and compile but when running i get this
|
@equisde I don't know what's the problem you're seeing, but I've just created a quick github actions demo project that builds a simple Windows executable with |
Describe what happened:
I try to use mingw64 to install go-python3 on windows, but failed:
the PKG_CONFIG_PATH environment variable is already set to my python3.exe directory.
Describe what you expected:
Steps to reproduce the issue:
The text was updated successfully, but these errors were encountered: