如何从PowerShell激活conda环境

  1. 打开 Powershell 并浏览到Anaconda 安装目录中的condabin文件夹
  2. 在该文件夹中运行./conda init powershell,然后重新打开 powershell。
  3. 重新打开 powershell后如果出现报错的情况,只需以管理员身份运行 Powershell 并输入以下内容:Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy Unrestricted
  4. 重新打开powershell即可。

猜你喜欢

转载自blog.csdn.net/Kigha/article/details/130283199