'Can not activate a conda environemnt

I want to activate a conda env that I had added before. I can see my condo environment when I run

 conda info --envs
base                  *  /Users/myusername/opt/anaconda3
                         /Users/myusername/opt/miniconda3
                         /Users/myusername/opt/miniconda3/envs/ML_python_scripts_DiaMOND_env
                         /Users/myusername/opt/miniconda3/envs/ML_env
                         /Users/myusername/opt/miniconda3/envs/spyder-env

But when I run

conda activate ML_python_scripts_DiaMOND_env

it says it can not find the environment.

Could not find conda environment: ML_python_scripts_DiaMOND_env
You can list all discoverable environments with `conda info --envs`.

it does the same thing with the other environments, it does not matter from any directory I run this commends. I would really appreciate any help.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source