virtualenv won't activate on windows

后端 未结 18 1634
走了就别回头了
走了就别回头了 2020-12-07 14:05

Essentially I cannot seem to activate my virtualenv environment which I create.

I\'m doing this inside of windows powershell through using

scripts\\a         


        
18条回答
  •  一生所求
    2020-12-07 14:31

    Moving comment to answers section :)

    According to Microsoft Tech Support it might be a problem with Execution Policy Settings. To fix it, You should try executing Set-ExecutionPolicy Unrestricted -Scope Process (as mentioned in the comment section by @wtsiamruk) in Your Power Shell. This would allow running virtualenv in the current Power Shell session.

    Unsafe way, but recommended by MS Tech Support would be Set-ExecutionPolicy Unrestricted -Force (which do unleash powers to screw Your system up).

    EDIT: edited and added the SAFER way from the comment section.

提交回复
热议问题