-
Notifications
You must be signed in to change notification settings - Fork 5.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Specifying python.h and pybind11 path in windows #169
Comments
I think so. It was written for Linux and hasn't been tested on windows. Which is why I'm surprised if you got the PyBind11 stuff to work. I guess you could maybe try something like mingw. Haven't tried it myself though. |
Thank you so much @Znunu , |
Binaries must be built for either win or linux. Running the tasks from the tutorial on linux and then just copying them over to win, won't work. Frankly I'm not very knowledgeable on the topic of compilers and linkers. It might be worth asking someone else. You can also look for dedicated pybind11 tutorials. |
Hi, @Vahid44 The code that is there currently uses some fancy tricks to run python to generate the command line:
The two interesting sections are I'm sorry, but I don't have a windows machine on which to experiment for this. I hope this helps! |
Hello everyone, and thanks for this great material.
I am trying to use cython to import a C++ library in Python.
I followed the instructions in Python Bindings: Calling C or C++ From Python, but I have a problem.
Everything is fine till I run "invoke build-cython"
The g++ cannot find the path for python and pybind11 directory. The error is:
I guess the line ""-I /usr/include/python3.7 -I . "" in tasks.py file (line 132) does not work for me. Am I right? (is it because I'm using Windows?)
Can anyone please help me to solve this issue?
Thank you in advance.
Vahid.
The text was updated successfully, but these errors were encountered: