Thank you, the [new] one worked!
[old]
GradientEngine.UseEnvironmentFromVariable();
[new]
System.IO.DirectoryInfo home = new System.IO.DirectoryInfo(@"c:\ProgramData\Anaconda3\envs\py35cpu");
PythonEnvironment myenv = CondaEnvironment.DetectCondaEnvironment(home);
GradientEngine.UseEnvironment(myenv);
@kurikabocya would you mind testing the fix for this issue? For that, either clone this repo and run app.csproj and pass single command line parameter list, or try your [old] code variant with the lasted nightly build of WhichPython ( you can install/update to preview package version from https://www.nuget.org/packages/WhichPython/0.3.4-CI-20201012-001 ).
Activity
lostmsu commented on Oct 13, 2020
To reproduce simply run the app project, and use list command. System-wide environments will not be printed.
kurikabocya commented on Oct 13, 2020
Thank you, the [new] one worked!
[old]
GradientEngine.UseEnvironmentFromVariable();
[new]
System.IO.DirectoryInfo home = new System.IO.DirectoryInfo(@"c:\ProgramData\Anaconda3\envs\py35cpu");
PythonEnvironment myenv = CondaEnvironment.DetectCondaEnvironment(home);
GradientEngine.UseEnvironment(myenv);
enumerate system-wide conda environments on Windows in addition to us…
lostmsu commented on Oct 14, 2020
@kurikabocya would you mind testing the fix for this issue? For that, either clone this repo and run app.csproj and pass single command line parameter list, or try your [old] code variant with the lasted nightly build of WhichPython ( you can install/update to preview package version from https://www.nuget.org/packages/WhichPython/0.3.4-CI-20201012-001 ).