Pycharm的Terminal里报错:
无法加载文件 C:\Users\YLZ\.virtualenvs\Python-GUI-Code-PyQt5-YpKJ8EmO\Scripts\activate.ps1,因为在此系统上禁止运行脚本。有关详细信息,请参阅 https:/go.microsoft.com/fwlink/?LinkID=135170 中的 about_Execution_Policies。
+ CategoryInfo : SecurityError: (:) [],ParentContainsErrorRecordException
+ FullyQualifiedErrorId : UnauthorizedAccess
解决办法:
1.在win10左下角搜到Windows PowerShell 右键以管理员身份运行
2.按照如下进行操作