Creating a virtualenv inside a specific directory with virtualenv / virtualenvwrapper [duplicate]
Asked Answered
A

1

7

Is there a way for creating the virtualenv folder in a specific directory (i.e., the current directory) using virtualenv / virtualenvwrapper, instead of the default one (i.e., WORKON_HOME).

Something equivalent to:

$ python -m venv env # this creates the folder `env` in the current path
Anlace answered 25/11, 2020 at 16:52 Comment(4)
virtualenv — yes: just do virtualenv env or virtualenv /path/to/envRobynroc
virtualenvwrapper — no; the entire idea of virtualenvwrapper is to manage virtual environments in a central location.Robynroc
thanx for pointing out the rationale behind virtualenvwrapperAnlace
virtualenvwrapper -- yes: you can set WORKON_HOME to another directory and create the environment there. You can set it back. It's easy to manage with a few bash aliases.Fosdick
G
9

use virtualenv /pathto/env for this.

Gradus answered 25/11, 2020 at 17:54 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.