进入PowerShell里面执行命令(win+R输入PowerShell) 重启编辑器就可以使用虚拟环境了
# 查看模式 Get-ExecutionPolicy # 表示严格模式 > Restricted #解除严格模式(Y确认) Set-ExecutionPolicy Bypass