Skip to content

Instantly share code, notes, and snippets.

View DeadBranches's full-sized avatar

DeadBranch DeadBranches

  • North America
View GitHub Profile
@DeadBranches
DeadBranches / conda_package_finder.py
Last active March 29, 2023 21:48
Find in which conda environments a package is installed.
import os
import subprocess
from typing import List
def get_conda_envs() -> List[str]:
"""
Get a list of conda environments and return their names.
"""
# Execute the `conda env list` command and capture its output