0%

解决Windows下Powershell无法执行脚本无法运行conda的问题

解决Windows下Powershell无法执行脚本或者无法运行conda指令的问题

  • 报错:
    • picture 1
  • 参考
  • 在当前powershell中输入get-ExecutionPolicy查看,一般结果是Restricted
  • 输入Set-ExecutionPolicy -Scope CurrentUser
  • 输入RemoteSigned切换模式
  • 然后重启powershell即可
  • 此时假如遇到conda命令无法执行的问题,只需要conda init powershell然后重启即可