Modifying an Installed Conda Environment in Your Notebook Session
Learn about the multiple ways to modify the libraries in a conda environment.
You can directly install libraries using pip
or conda
commands in a notebook. The libraries are installed in the conda environment corresponding to the notebook kernel.
Alternatively, you can install libraries from a terminal window tab. The conda
environment has to be activated in the terminal and then you use the conda
install
command:
source activate <path-to-the-conda-environment>
conda install --file <path-to-requirements-file>
The <path-to-the-conda-environment> is the path to the installed conda
environment you want to install the libraries in. All Installed Conda Environments are
stored in the /home/datascience/conda/<slug>
directory. The <path-to-requirements-file> is the path to the file listing all
the libraries you want to install in the conda environment.