List all virtualenv

落爺英雄遲暮 提交于 2019-11-28 03:21:44

You can use the lsvirtualenv, in which you have two options "long" or "brief":

"long" option is the default one, it searches for any hook you may have around this command and executes it, which takes more time.

"brief" just take the virtualenvs names and prints it.

brief usage:

$ lsvirtualenv -b

long usage:

$ lsvirtualenv -l

if you don't have any hooks, or don't even know what i'm talking about, just use "brief".

Silly question. Found that there's a

lsvirtualenv

command which lists all existing virtualenv.

Run workon with no argument to list available environments.

Michael Yadidya

To list all the virtual environments (if using the anaconda distribution):

conda info --envs

Hope my answer helps someone...

This works on Windows only:

If you are trying to find all envs created using virtualenv
search for "activate_this.py" or "pip-selfcheck.json"

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!