I have two environments in anaconda, namely: root
, 2env
. When I open anaconda prompt, I can switch from root
to 2env
by typing: activate 2env
. I also have conda in my powershell, but when I open powershell and try to run conda activate 2env
it gives the following error:
CommandNotFoundError: 'activate'
Any suggestions on how to fix this?
conda
. Conda is mostly used for package management. Tryconda -h
to see valid commands. You needactivate
in your powershell.activate env2
but it doesn't activate the env2 environment.PATH
environmental variable, so the commands will not be available in your shell. Starting the anaconda shell adds the reference to PATH.