How to activate a conda environment from PowerShell

  1. Open Powershell and browse to the condabin folder in the Anaconda installation directory
  2. Run ./conda init powershell in that folder and reopen powershell.
  3. If an error occurs after reopening powershell, just run Powershell as an administrator and enter the following: Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy Unrestricted
  4. Just reopen powershell.

Guess you like

Origin blog.csdn.net/Kigha/article/details/130283199
Recommended