virtualenv in PowerShell?

后端 未结 13 2068
悲&欢浪女
悲&欢浪女 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条回答
  •  -上瘾入骨i
    2020-12-12 21:09

    I had that problem too! and finally found out what should we do in windows...

    ok, follow these steps:

    1)Type powershell in search bar of windows then right click on it and select Run as Administrator

    (if you have problem in that check this)

    2) Run the following command in powershell: Set-ExecutionPolicy Unrestricted

    3) Rerun the activation command:.\\env\Scripts\activate.ps1

    (just run the exact command! be careful about name of your environment.)

    and that's it!:)

提交回复
热议问题