vscode无法启动conda / 无法加载文件C:\Users\user\Documents\WindowsPowerShell\profile.ps1因为在此系统上禁止运行脚本

提示
无法加载文件 C:\Users\user\Documents\WindowsPowerShell\profile.ps1,因为在此系统上禁止运行脚本
解决办法

  1. 在管理员powershell中输入set-ExecutionPolicy RemoteSigned
  2. 重启vscode,在terminial中可以看到(base)前缀
  3. 如果还没有,则使用conda init

猜你喜欢

转载自blog.csdn.net/u010590593/article/details/120198577