如何在PowerShell中运行virtualenv?

今天在使用win10搭建Django博客项目时,发现PowerShell 无法使用virtualenv .

只需要加入命令


  1. PS C:\Windows\system32> Set-ExecutionPolicy RemoteSigned
  2. 执行策略更改
  3. 执行策略可帮助你防止执行不信任的脚本。更改执行策略可能会产生安全风险,如 http://go.microsoft.com/fwlink/?LinkID=135170
  4. 中的 about_Execution_Policies 帮助主题所述。是否要更改执行策略?
  5. [Y] 是(Y) [N] 否(N) [S] 挂起(S) [?] 帮助 (默认值为“Y”): Y
  6. PS C:\Windows\system32>

只要运行:

Scripts\activate.ps1

代替

Scripts\activate

你可能感兴趣的:(Django)