diff --git a/llama_stack/cli/stack/run.py b/llama_stack/cli/stack/run.py index 62a45ada0..48b443524 100644 --- a/llama_stack/cli/stack/run.py +++ b/llama_stack/cli/stack/run.py @@ -140,6 +140,10 @@ class StackRun(Subcommand): return def get_conda_prefix(env_name): + # Conda "base" environment does not end with "base" in the + # prefix, so should be handled separately. + if env_name == "base": + return os.environ.get("CONDA_PREFIX") # Get conda environments info conda_env_info = json.loads( subprocess.check_output(