1

I am trying to locate which conda executable I am using. For this, I want to use which command. As per man pages, it should return the path of the executable. Instead it returns some bash function

(base) ➜  ~ which conda
conda () {
    \local cmd="${1-__missing__}"
    case "$cmd" in
        (activate | deactivate) __conda_activate "$@" ;;
        (install | update | upgrade | remove | uninstall) __conda_exe "$@" || \return
            __conda_reactivate ;;
        (*) __conda_exe "$@" ;;
    esac
}

If I try to see the location of __conda_exe, again I get another function:

__conda_exe () {
    (
        __add_sys_prefix_to_path
        "$CONDA_EXE" $_CE_M $_CE_CONDA "$@"
    )
}

where is the conda function I am using?

A.B
  • 36,364
  • 2
  • 73
  • 118
asdf
  • 111

1 Answers1

1

Since you’re using , I would recommend using the following:

whence -aSv conda

This will show you all the possible ways in which conda can be resolved.