The answer is here:
https://github.com/conda/conda/issues/7980
source ~/anaconda3/etc/profile.d/conda.sh
conda 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'
🙂