I want to use multiple conda environments together. I have a huge conda environment containing a lot of packages (lets call it the monolith) which I use in all my projects and don't want to create again. I want to create a separate smaller conda environments for each project and work use it along with my huge monolith. So that I can keep the monolith clean and use for multiple projects safely. Following are a few things I think should be taken care of,
- Update PATH, PYTHONPATH and LD_LIBRARY_PATH variables.
- When installing a new package run a try dry run on all the environments in the stack and only then install it to the top environment. So that any version conflicts can be caught.
- While executing the dry runs keep track of all the packages conda lists for installation. And when running the final install on top environment install only the intersection of packages listed in each of the dry run with --no-deps flag. This way we can avoid reinstallation of packages.
Would this approach work?