Useful Anaconda Commands on Ubuntu

Example YAML environment file:

name: my_env
- menpo
- defaults
- 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:

Leave a Reply

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