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
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]) """);
This discussion was converted from issue #2538 on January 04, 2025 19:32.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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
no AA in os.environ, so Environment variables in https://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?
Beta Was this translation helpful? Give feedback.
All reactions