Python virtualenv questions

前端 未结 5 1447
轻奢々
轻奢々 2020-11-28 03:17

I\'m using VirtualEnv on Windows XP. I\'m wondering if I have my brain wrapped around it correctly:

I ran virtualenv ENV and it created C:\\WINDOW

5条回答
  •  没有蜡笔的小新
    2020-11-28 03:57

    on Windows I have python 3.7 installed and I still couldn't activate virtualenv from Gitbash with ./Scripts/activate although it worked from Powershell after running Set-ExecutionPolicy Unrestricted in Powershell and changing the setting to "Yes To All".

    I don't like Powershell and I like to use Gitbash, so to activate virtualenv in Gitbash first navigate to your project folder, use ls to list the contents of the folder and be sure you see "Scripts". Change directory to "Scripts" using cd Scripts, once you're in the "Scripts" path use . activate to activate virtualenv. Don't forget the space after the dot.

提交回复
热议问题