1

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
floatingpurr
  • 6,509
  • 7
  • 39
  • 88
  • 1
    `virtualenv` — yes: just do `virtualenv env` or `virtualenv /path/to/env` – phd Nov 25 '20 at 17:40
  • 1
    `virtualenvwrapper` — no; the entire idea of `virtualenvwrapper` is to manage virtual environments in a central location. – phd Nov 25 '20 at 17:41
  • thanx for pointing out the rationale behind `virtualenvwrapper` – floatingpurr Nov 25 '20 at 20:43
  • `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. – anilbey Oct 25 '21 at 13:39

1 Answers1

4

use virtualenv /pathto/env for this.

lrainey6-eng
  • 143
  • 1
  • 1
  • 7