VsCode问题:CommandNotFoundError: Your shell has not been properly configured to use ‘conda activate‘.C
今天vsCode使用时突然不能切换工作环境,
conda activate torch命令之后, 弹出下面的报错,
CommandNotFoundError: Your shell has not been properly configured to use ‘conda activate’.
下面blabla…一片,貌似有个conda init,赶紧试了一下。然后关闭vsCode重启。
重启VScode后碰到第二个问题,
无法加载文件 C:\Users\Administrator\Documents\WindowsPowerShell\profile.ps1,因为在此系统上禁止运行脚本
网上找了下解决办法:
win10找到Windows Powershell后以管理员身份打开,输入:
get-ExecutionPolicy # 查看系统执行策略状态
set-executionpolicy remotesigned # 修改执行策略状态
然后下面红红的一片,内容没细看。直接关闭Windows Powershell,再重启VScode,一切恢复正常。
还没有评论,来说两句吧...