Conda install opens unwanted files

98 Views Asked by At

I have a conda environment called "gam", whenever I try to install a module, I can install the module but it automatically opens the following files:

~/opt/miniconda3/envs/gam/etc/conda/activate.d/activate_clang_osx-64.sh
~/opt/miniconda3/envs/gam/etc/conda/activate.d/activate_clangxx_osx-64.sh
~/opt/miniconda3/envs/gam/etc/conda/deactivate.d/deactivate_clang_osx-64.sh
~/opt/miniconda3/envs/gam/etc/conda/deactivate.d/deactivate_clangxx_osx-64.sh

Command:

conda install -n gam -c conda-forge nbformat

Question

How to stop automatically opening of these files?

Note: The problem is only with "gam" environment, it does not have this problem with other environments.

Info

platform: Macos catalina

$ conda --version
conda 4.8.5

which conda gives:

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
}
1

There are 1 best solutions below

8
On

Don't know what the issue is but you could try using

conda install -p <full path> -c conda-forge nbformat