无法加载文件 C:\Users\lxycl\Scripts\activate.ps1,因为在此系统上禁止运行脚本。有关详细信息,请参阅 https:/go.microsoft.com/fwlink/?LinkID=1351
70 中的 about_Execution_Policies。
+ CategoryInfo : SecurityError: (:) [],ParentContainsErrorRecordException
+ FullyQualifiedErrorId : UnauthorizedAccess
解决
具体的解决步骤如下:
- 以管理员身份运行PowerShell
- 输入
get-ExecutionPolicy
(如果返回Restriced,则继续下述的步骤) - 输入
set-ExecutionPolicy RemoteSigned
- 输入
Y
按下回车