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?
Although Conda previously did not support PowerShell, this is now resolved in Conda 4.6.
After adding Anaconda3/Scripts/
to your PATH variable, you should be able to initialize Conda for use with powershell with:
conda init powershell
Afterwards, you can use conda
normally:
conda activate base