Skip to content

Additional Installation Configurations

Lina Muryanto edited this page Oct 14, 2020 · 4 revisions

WikiInstallAdditional Installation Configurations

Partial Installation

If you're interested in a "cdat-lite", you can install just a few packages instead of everything:

  • conda create -n mycdms2 cdms2 -c conda-forge will install just the cdms2 module
  • conda create -n cdat_lite cdms2 cdutil -c conda-forge will get you both cdms2 and cdutil.
  • conda create -n myvcs vcs -c cdat/label/v8.2.1 -c conda-forge will get you the vcs module (along with CDMS2, which is one of its dependencies)

Conda environment

  • conda create -n [YOUR_ENV_NAME_HERE] -c cdat/label/v8.2.1 -c conda-forge python=3.6 cdat
  • conda activate [YOUR_ENV_NAME_HERE]
  • conda env list list your available conda envs
  • conda create -n [YOUR_ENV_NAME_HERE] --clone ENV to clone an environment and add to it
  • To learn more about conda environments see: http://conda.pydata.org/docs/using/envs.html

Creating your own environment with additional packages

The beauty of conda is that it lets you create and add environments at will. You can create you own environment with whatever python package you fancy using the following command:

conda create -n [YOUR_ENV_NAME_HERE] -c cdat/label/v81 -c conda-forge cdat [YOUR_DESIRED_ADDITIONAL_PACKAGES_HERE]

Adding additional packages after the fact

Let's say you would like to add the jupyterhub package after you installed CDAT. Simply run (while in your environment):

conda activate [YOUR_ENV_NAME_HERE]

conda install jupyterhub -c conda-forge

Multi users environments

Offline installation

Clone this wiki locally