[英]virtualenv doesn't work on git bash MINGW32
I'm a git newbie. 我是个新手。 I'm working on Windows and I use Git Bash MINGW32. 我在Windows上工作,我使用Git Bash MINGW32。 I was working in my directory on master Branch in "env" environmental (created by myself with virtualenv). 我在“env”环境中使用master上的master目录工作(由我自己用virtualenv创建)。 For an error I close my shell and now I cannot reactivate env environemntal. 对于错误,我关闭了我的shell,现在我无法重新激活env environemntal。 I try with 我试着用
env\Scripts\activate
but i cannot see env in the prompt. 但我在提示中看不到env。 I try to create another virtual environmental using 我尝试使用创建另一个虚拟环境
VIRTUALENV env1
and then 接着
env1\Scripts\activate
But i don't see env1 in the prompt. 但我没有在提示中看到env1。
If I create a test virtual environmental using msdos prompt it works. 如果我使用msdos提示创建测试虚拟环境,它可以工作。
Any tips? 有小费吗?
Could you rather try sourcing the environment ( after VIRTUALENV env1
, provided your virtualenv is 1.7.1+): 您是否可以尝试采购环境( 在 VIRTUALENV env1
,假设您的virtualenv为1.7.1+):
. env/Scripts/activate
or
source env/Scripts/activate
In a bash session, you would use /
or (Windows bash) \\\\
在bash会话中,您将使用/
或(Windows bash) \\\\
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.