INNER CODE UNIT · Python

remove_by_mamba

devstream-io/devstream · devstream/env_manager.py:273

    def remove_by_mamba(self, env_name: str) -> bool:
        """
        Remove the python environment.
        """
        is_exist = os.path.exists(os.path.join(MAMBA_PY_ENVS, env_name))
        if not is_exist:
            return True

        # remove the environment
        cmd = [
            self.mamba_bin,
            "env",
            "remove",
            "-n",
            env_name,
            "-r",
            self.mamba_root,
            "-y",

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…