I find myself needing to create very similar conda environments which, in terms of space is inefficient. I was wondering if there was a way to layer different environments in a "modular" way. For example, having a 'common' env with pandas, numpy, and other basic everyday needed libraries. And on top of that, activate other environments with other libraries, for example, streamlit to run a dashboard or one with deep learning libraries such as fastai or keras.
Some of these libraries like the ones used in deep learning take up a lot of space in the disc, so having 3 different projects with the same version of keras, just because they use a different version of some other library is something I'm trying to avoid.
I've read the conda documentation and I see there's a --stack option which at first seems to be what I'm looking for but, testing it out I cannot run the first's environment libraries once I activate the second one.
Am I doing something wrong or is this just something that is not possible with conda? And if not, is there any alternative to archiving it?
Thanks in advance