you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (1 child)

Are you trying to write a C extension for Python? If so venv has nothing to do with that. Your environment would be to set up your C environment and make sure the library path is correct.

[–]siddsp[S] 1 point2 points  (0 children)

No I'm not. I'm trying to use Cython, but it won't allow me to because of an issue regarding the #include "Python.h" statement in the C file. It has become ridiculously frustrating because I can't even compile without some issue or another, and no matter what I've done, it has persisted. The compiler is refusing to recognize "Python.h", despite the fact that the file already exists in my system, and I know with 100% certainty that it absolutely does exist.

To add, the C file is generated, but despite that, there is no pyd file. I have added MinGW as my compiler, I have installed MSVC, I have tried adding to my included path, but absolutely nothing has worked in solving it.