Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Conda | ||||||||
Line: 50 to 50 | ||||||||
You don't have to install conda (or miniconda or anaconda). Conda version 4.6.14 is already installed on every system in the Nevis particle-physics Linux cluster. | ||||||||
Changed: | ||||||||
< < | What you may have to install for typical scientific research packages is conda-forge![]() | |||||||
> > | The default channel you'll probably want to assign for typical scientific research packages is conda-forge![]() | |||||||
conda config --add channels conda-forge | ||||||||
Line: 130 to 130 | ||||||||
If you used pip to install a python package within this conda environment, then it might be copied over by this procedure. I've tried it a couple of times; once it worked, another time it didn't.
| ||||||||
Changed: | ||||||||
< < | # See the name of conda environment's you've got | |||||||
> > | # See the name of any conda environments you've got | |||||||
conda info --envs # Create the new location of the environment if it's not already there. | ||||||||
Line: 147 to 147 | ||||||||
conda remove --name myenv --all | ||||||||
Added: | ||||||||
> > | Moving the default environment and package directoriesBy default, conda stores both its environment directory (variableenvs_dirs ) and its package directory (variable pkgs_dirs ) in your home directory: ~/.conda . As noted above, these directories can begin to take up a substantial amount of space as you continue to work with conda environments.
One solution is to move both of these directories to a partition where you have enough space. For this example, let's assume that you've chosen to store both of these directories within /nevis/olga/data/jsmith/conda (again, this is not a directory that actually exists on any of the Nevis Linux cluster systems).
# Define a handy variable for this operation prefix=/nevis/olga/data/jsmith/conda # Add the new definitions to ~/.condarc conda config --add envs_dirs ${prefix}/envs conda config --add pkgs_dirs ${prefix}/pkgs # Move the package directory to the new location # (To move the environments, use the clone recipe above) (cd ~/.conda; tar -cf - ./pkgs) | (cd ${prefix}; tar -xf -) # Delete the old package directory rm -rf ~/.conda/pkgsAny new conda environments that you create will be in the directory given by envs_dirs . | |||||||
Conda and pipBoth conda and pip![]() |