Skip to content

Cross-platform .NET library, that helps to list available Python installations

License

Notifications You must be signed in to change notification settings

losttech/WhichPython

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WhichPython

Cross-platform library, that lists available Python environments

WhichPython on NuGet

Sample (see app folder)

foreach (var environment in PythonEnvironment.EnumerateEnvironments()
                                    .Concat(CondaEnvironment.EnumerateCondaEnvironments())) {
    Console.WriteLine(this.HomeOnly
        ? environment.Home?.FullName
        : $"{environment.LanguageVersion?.ToString(2) ?? "??"}-{environment.Architecture?.ToString() ?? "???"} @ {environment.Home}");
}

About

Cross-platform .NET library, that helps to list available Python installations

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages