virtualenv won't activate on windows

后端 未结 18 1636
走了就别回头了
走了就别回头了 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:26

    Another quick solution I have found here (it is applicable for Windows Powershell only) is like this:

    First run

    Scripts\cmd
    

    Then run

    Scripts\activate.bat
    

    At this position, your Virtualenv is activated. Now if you deactivate it and want to activate it again later in the same session of powershell, you just need to run-

    Scripts\activate
    

    There is no need to cmd or activate.bat command later.

提交回复
热议问题