I have a problem I can’t seem to find an answer too. I have (as a sysadmin, not a Python guru) to setup a shared Miniforge environment across several physical nodes with shared CIFS storage.
Ideally I would like all the nodes to share both the binaries and the venv but it doesn’t appear possible. For now I will settle for being able to create a shared conda environment that can be consumed by users on all nodes.
I am failing because even though I can install Miniforge on one of the nodes and set the virtual environment to point to the shared storge, when I do “pip install -r requirements” all the files get put into the current users home directory rather than the shared venv folder on shared storage. I expect importing the environment.yaml will have a similar issue ( havent tested )
Is there any simple way to setup Miniforge on each server, with the shared virtual environment being used and be able to allow additional users? I do realise there is a switch to make pip files available in an alternate location but I somehow feel like I am missing the bigger picture?
Installed miniforge on node1 with rights of 775
Created virtual environment on /mnt/shared1
Activated the environment
Ran pip install -r requirements.txt
BeerIsFood is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.