`Which Conda` Doesn't Output a Path

I think which conda should output the path to the binary, but instead I get this:

$ which conda
conda () {
    if [ "$#" -lt 1 ]
    then
        "$CONDA_EXE" $_CE_M $_CE_CONDA
    else
        \local cmd="$1"
        shift
        case "$cmd" in
            (activate | deactivate) __conda_activate "$cmd" "$@" ;;
            (install | update | upgrade | remove | uninstall) CONDA_INTERNAL_OLDPATH="${PATH}" 
                __add_sys_prefix_to_path
                "$CONDA_EXE" $_CE_M $_CE_CONDA "$cmd" "$@"
                \local t1=$?
                PATH="${CONDA_INTERNAL_OLDPATH}" 
                if [ $t1 = 0 ]
                then
                    __conda_reactivate
                else
                    return $t1
                fi ;;
            (*) CONDA_INTERNAL_OLDPATH="${PATH}" 
                __add_sys_prefix_to_path
                "$CONDA_EXE" $_CE_M $_CE_CONDA "$cmd" "$@"
                \local t1=$?
                PATH="${CONDA_INTERNAL_OLDPATH}" 
                return $t1 ;;
        esac
    fi
}

Do you know how to fix this?

2

1 Answer

In your environment, a conda function has been defined. I would try

conda install
1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Maya Lin-Takahashi

Maya Lin-Takahashi

Consumer Tech & Gadget Reviewer

Maya is a hardware enthusiast who tests and reviews smart home devices, smartphones, wearables, and audio gear. She focuses on practical consumer value and build quality.

Share this article
Twitter Facebook Pinterest