You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, they are for embedding CPython within a .NET application whereas I would like to get the import clr statement working. Furthermore, I have installed CPython 3.8.6 and got its location with import sys; sys.executable and set that to PATH, PYTHONHOME, and PYTHONPATH environment variables.
Seems like this can be resolved by adding the WINDOWS flag to the conditional compilation symbols when building the Python.NET project in Visual Studio.
Environment
Details
I've gone through https://github.com/pythonnet/pythonnet/wiki/Troubleshooting-on-Windows,-Linux,-and-OSX#common-errors and the issues listed there, #259 #463 #467
However, they are for embedding CPython within a .NET application whereas I would like to get the
import clr
statement working. Furthermore, I have installed CPython 3.8.6 and got its location withimport sys; sys.executable
and set that to PATH, PYTHONHOME, and PYTHONPATH environment variables.Also my VS configuration is:

However,
The text was updated successfully, but these errors were encountered: