- Notifications
You must be signed in to change notification settings - Fork748
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
Environment
Details
I tested the virtual environment created with Poetry and it always failed. The test found that there were issues with the environment variables Environment.SetEnvironmentVariable("AA","BB");Runtime.PythonDLL= @"D:\Program Files\Python312\python312.dll";PythonEngine.Initialize();PythonEngine.RunSimpleString(""" import os for e in os.environ: print(e,':', os.environ[e]) """); no AA in os.environ, so Environment variables inhttps://github.com/pythonnet/pythonnet/wiki/Using-Python.NET-with-Virtual-Environments no effect, So it leads to the inability to call Python in virtual environments? |
BetaWas this translation helpful?Give feedback.
All reactions
Replies: 0 comments
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Labels
None yet
Converted from issue
This discussion was converted from issue #2538 on January 04, 2025 19:32.