Adding Packages/Libraries to the New Environment
Packages can be added to the Conda environment via two mechanisms either of which work fine.
Python
Python has native Conda Environment support, hence from within a notebook using the Kernel simply calling Conda will install any package correctly to the current environment. This has the added advantage (if this is a python-based project), of capturing your package installs within a Notebook for ease of re-reproducibility for others.
Anything Else
The terminal can also be used to install any Conda packages using the following commands;
Code Block | ||
---|---|---|
| ||
source activate /data/conda/<environment_name> conda install -y <package> # e.g # source activate /data/conda/myenv # conda install -y numpy |