-
Notifications
You must be signed in to change notification settings - Fork 4
conda Basics
Maeve Murphy Quinlan edited this page Jul 5, 2024
·
1 revision
The devcontainer in this repository comes with miniforge plugged in. This lets you use conda commands.
See the conda cheatsheet for quick reference.
Some essential conda commands:
# from terminal/outside a conda env
conda env list # list built environments
conda env create --file PATH/TO/A/FILE # build a conda env from a file
conda env create --file .devcontainer/env-files/mkdocs-env.yml # build a conda env from a file
conda activate ENV-NAME # activate the environment ENV-NAME
# from inside a conda env (after activating the env)
conda list # lists installed packages in the env
conda env export --no-builds > exported-env.yml # exports all packages in the env
conda env export --from-history > exported-env.yml # exports the packages that were explicitly installedRead more about miniforge here.