# Overview
Conda is a dependency and environment management tool that can work for any language, but most often is used for python.
# Cheat Sheet
To create a conda environment:
```bash
conda create --name env-name python=3.10
```
Install a package
```bash
conda install jupyter
```
Remove a package
```bash
conda remove jupyter
```
To list all environments,
```bash
conda env list
```
To delete an environment
```bash
conda env remove --name env-name
```
Export an environment to a .yml file. The `--from-history` flag will only export explicitly stated dependencies, which is helpful for the portability of the environment
```bash
# Have environment activated
conda env export --from-history > environment.yml
```
An example conda .yml file looks something like this:
```yml
name: example-environment
dependencies:
- python=3.4
- numpy
- toolz
- matplotlib
- dill
- pandas
- partd
- bokeh
- pip:
- git+https://github.com/blaze/dask.git#egg=dask[complete]
```
# Tips:
- resolving conda dependencies can be very slow, so try not to let them get too big and bloated.