Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

can I nest virtualenvs?

is it possible to nest 2 virtualenvs?

I would like to have a base virtualenv and then a more specific virtualenv that accesses all the packages from the base virtualenv and then has its own.

Any hint appreciated, thanks.

like image 253
Andrea Zonca Avatar asked May 24 '12 21:05

Andrea Zonca


People also ask

Can I move VENV folder?

Kindly be informed that yes, it is possible to move it on the same platform. You can simply use --relocatable on an existing environment. But it will get changed based on the new location in order to call python and pip, etc. without the absolute path.

Is virtualenv better than VENV?

These are almost completely interchangeable, the difference being that virtualenv supports older python versions and has a few more minor unique features, while venv is in the standard library.

Is VENV necessary?

VirtualEnv helps you create a Local Environment(not System wide) Specific to the Project you are working upon. Hence, As you start working on Multiple projects, your projects would have different Dependencies (e.g different Django versions) hence you would need a different virtual Environment for each Project.


1 Answers

No, this isn't currently possible. There is a feature request and a patch for the functionality out there though:

https://github.com/pypa/virtualenv/issues/33

like image 165
ire_and_curses Avatar answered Oct 16 '22 06:10

ire_and_curses