Download miniconda at https://docs.conda.io/en/latest/miniconda.html
conda env list
- List all environments on your machineconda activate foo
- Activate the environment calledfoo
conda deactivate
- Deactivate the environment you are currently using
conda create --name foo Python=3.6 scipy=1.9 jupyter
- Create an evironment calledfoo
using Python 3.6, scipy 1.9 and the latest version of jupyterconda create --name bar --clone foo
- Create an enviroment called bar that's a clone of the foo environmentconda remove --name foo --all
- Removes the environment called foo
conda install scipy
- Installs the latest version of scipy into the active environmentconda remove scipy
- Uninstalls scipy from the active environment
Environment files contain full descriptions of environments and can be shared to allow others to use the same environment as you.
conda env export > environment.yml
- Createenvironment.yml
describing the currently active environmentconda env create -f environment.yml
- Create an environment from the description in environment.yml