CommandNotFoundError: Your shell has not been properly configured to use 'conda activate' CommandNotFoundError: Your shell has not been properly configured to use 'conda activate' bash bash

CommandNotFoundError: Your shell has not been properly configured to use 'conda activate'


The answer is here:https://github.com/conda/conda/issues/7980

source ~/anaconda3/etc/profile.d/conda.shconda activate my_env

Maybe you're also using the wrong anaconda/miniconda path.Use the one which results from this command:

conda info | grep -i 'base environment'

:)


For me the last answer here worked. It's kind of inconvenient but better than nothing... So, if it's necessary to run something in the conda environment, I just put !source <path_to_activate_function> my_env before other commands, as follows:

!source ~/anaconda3/bin/activate vilbert-mt && conda env list