1
Is there a way to specify, on the command line, where conda installs packages and finds prereqs? When I create a new package with conda create --prefix /path/to/whereiwantstuff/envs/envname pkg1 pkg2
the environment lives where I told it to, but packages are still installed to the first location under pkgs_dirs
in my .condarc
(or the default ~/.conda/pkgs
); there doesn't seem to be a command line option to specify where packages go.
The end goal is to enable users to create both group and individual environments. Perhaps users A, B, and C of group ABC use a given set of software, but said software can't/shouldn't be installed system wide (e.g niche software in an HPC environment). Ideally there would be a /path/to/group_dir/.conda
where both environments and packages would go, and which could be accessed by anyone who had the right permissions and the following in their .condarc
:
envs_dirs:
- ~/.conda/envs
- /path/to/group_dir/.conda/envs
pkgs_dirs:
- ~/.conda/pkgs
- /path/to/group_dir/.conda/pkgs
Is this possible without doing something hackish like constantly modifying .condarc
or manually moving packages?