How to activate different anaconda environment from powershell
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
I found this command while using vs code & cmd /k "activate <env> & powershell"
.It is working
I found this solution:
I've been building on BCSharp's excellent work at my own repo (currently on PR).
Just do:
conda install -n root -c pscondaenvs pscondaenvs
You need Conda 4.1 or above (check with conda info conda) - otherwise please install the latest version.
Behavior is exactly like CMD - use activate or deactivate appropriately. It's completely backwards compatible and will also launch both .ps1 and .bat activate.d/deactivate.d scripts.
from https://github.com/conda/conda/issues/626#issuecomment-346224990 has worked really well for me.