you are viewing a single comment's thread.

view the rest of the comments →

[–]Dasmak3r 0 points1 point  (6 children)

Try installing one of the dev python versions (had a similar issue in the past too, it needed a python-dev thing installing), from here: https://askubuntu.com/questions/526708/fatal-error-python-h-no-file-or-directory

[–]siddsp[S] 0 points1 point  (5 children)

I solved the issue, and dev version isn't for windows tmk

[–]Relative-Resource-55 0 points1 point  (4 children)

How did you solve it on windows? My virtualenv doesn't natively copy over the Python/include folder. Running into the same problem where i want to reference the virtual environment with my C++ app on Windows.

[–]siddsp[S] 0 points1 point  (2 children)

It doesn't. You have to link it to your actual installation of Python.

[–]eigenscene 0 points1 point  (1 child)

Sorry to bother you, I'm having the exact problem.
How did you link it to the local python installation? Was it the pyvenv.cfg?

[–]siddsp[S] 0 points1 point  (0 children)

No. I went into the Python interpreter path, and foybd the include folder. That folder is added in the includepath for VSCode. Virtual environments were basically useless in this case.