如何在Windows中设置虚拟环境

时间:2020-01-28 11:27:38

标签: python windows powershell virtualenv

PS C:\Users\Hennessy\Desktop\brte_project\brte_project> env\Scripts\activate
env\Scripts\activate : File C:\Users\Hennessy\Desktop\brte_project\brte_project\env\Scripts\activate.ps1 cannot be loaded because running scripts is 
disabled on this system. For more information, see about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170.
At line:1 char:1
+ env\Scripts\activate
+ ~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : SecurityError: (:) [], PSSecurityException
    + FullyQualifiedErrorId : UnauthorizedAccess

每次尝试激活虚拟环境时,vs代码都会给我这个错误。解决方案是什么?

0 个答案:

没有答案