"Cascading" virtual Python environnements

101 Views Asked by At

I am working with Python on an offline Red Hat Enterprise Linux machine, mainly using Data Science and AI libraries.

As Anaconda is no more an option, I would like to install a bunch of libraries inside a virtual environment, referencing the Python operating system interpreter.

This virtual environment will probably be huge and I would like to create smaller virtual environments for every project referencing THIS huge virtual environment.

So I will have the following hierarchy:

Python system interpreter/Python standard library
|
|__ (huge) Python virtual environment including a bunch of libraries
|
|__ (small) Python virtual environment including zero or a few additional libraries

Is it a valid use case of virtual envs ? Is there a better way to achieve this ? Partially mirroring offline the official PyPI.org is not an option too.

0

There are 0 best solutions below