Visitar URL original
[Windows] System-wide conda environments are not returned by EnumerateCondaEnvironments · Issue #5 · losttech/WhichPython · GitHub
Skip to content

[Windows] System-wide conda environments are not returned by EnumerateCondaEnvironments #5

Description

@lostmsu

We should have a clear separation of system-wide and user environments similar to EnvironmentVariableTarget.

By default, both types of environments should be returned, and CondaEnvironment should be able to tell the type to distinguish between them.

Activity

  1. lostmsu commented on Oct 13, 2020

    @lostmsu
    ContributorAuthor

    To reproduce simply run the app project, and use list command. System-wide environments will not be printed.

  2. kurikabocya commented on Oct 13, 2020

    @kurikabocya

    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);

  3. lostmsu commented on Oct 14, 2020

    @lostmsu
    ContributorAuthor

    @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 ).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions