Useful Anaconda Commands on Ubuntu

Example YAML environment file:

name: my_env
channels:
- menpo
- defaults
dependencies:
- python=3.7
- numpy
- scipy
- matplotlib

Creating an environment from a YAML file:

conda env create -f my_env.yml

Updating an environment after updating the YAML environment file:

conda env update --file my_env.yml --prune

Activating an environment:

conda activate my_env

Deactivating an environment:

conda deactivate

Removing an environment:

conda remove --name my_env --all

Show existing environments:

conda info --envs

Here’s some real documentation for more information: https://docs.anaconda.com/

Leave a Reply

Your email address will not be published. Required fields are marked *