virtualenv won't activate on windows

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

    in windows you should activate the virtual environment by following command in cmd

    E:\your_environment\Scripts>activate.bat

    if the environment is activated then it show your environment name enclosed with bracket like this

    (your_environment) E:\your_environment\Scripts>

    Also we can ensure by checking with where.exe it will list our active python environment with order of hierarchy

     (your_environment) E:\your_environment\Scripts>where.exe python
    
     E:\your_environment\Scripts\python.exe
    
     C:\Python27\python.exe
    

    if you need to deactivate then do

    (your_environment) E:\your_environment\Scripts>deactivate.bat

提交回复
热议问题