在virtualenvwrapper中激活环境 [英] Activating environment in virtualenvwrapper

查看:212
本文介绍了在virtualenvwrapper中激活环境的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我安装了virtualenvvirtualenvwrapper,并使用此命令创建了一个环境:

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆