virtualenv in PowerShell?

后端 未结 13 2074
悲&欢浪女
悲&欢浪女 2020-12-12 20:32

Hi fellow pythonistas, there seems to be a problem when virtualenv is used in PowerShell.

When I try to activate my environment in PowerShell like..

> env

13条回答
  •  一整个雨季
    2020-12-12 21:26

    This error happens due to a security measure which won't let scripts be executed on your system without you having approved of it. You can do so by opening up a powershell with administrative rights (search for powershell in the main menu and select Run as administrator from the context menu) and entering:

    set-executionpolicy remotesigned

    for more: http://www.faqforge.com/windows/windows-powershell-running-scripts-is-disabled-on-this-system/

提交回复
热议问题