在virtualenvwrapper中激活环境 [英] Activating environment in virtualenvwrapper
问题描述
我安装了virtualenv
和virtualenvwrapper
,并使用此命令创建了一个环境:
i installed virtualenv
and virtualenvwrapper
and with this command i created an environment:
mkvirtualenv cv
它可以工作,并且在创建后我处于新环境中.现在我重新启动计算机,我想再次activate
该环境,但是如何?
it works and after creating i was in the new environment. right now i restarted my computer and i want to activate
that environment again, but how?
我使用本教程在Mac上安装Opencv,步骤之一是创建新环境.我现在很困惑:
i use this tutorial to install Opencv on my Mac and one of steps is creating new environment. im confused right now:
http://www.pyimagesearch.com/2015/06/15/install-opencv-3-0-and-python-2-7-on-osx/
我已经使用了virtualenv
,但是对virtualenvwrapper
还是陌生的,我不知道现在该怎么做
i uses virtualenv
already but im new to virtualenvwrapper
and i dont know what i have to do now
推荐答案
要激活环境,我们使用workon
命令.
To activate an environment, we use workon
command.
workon cv
如果您忘记了virtualenv名称,则只需键入:
If you forget the virtualenv name, you can just type:
workon
您将看到可用环境的列表.
And you will see a list of available environments.
这篇关于在virtualenvwrapper中激活环境的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!