Conda
This is a quick tutorial on using conda files. I sill start with a simple cheatsheet, here is a more complete one:
conda cheatsheet
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 | # show infos about current env
conda info
# create environment from file
conda env create -f environment.yml
# activate the environment (you might replace this with selecting it directly)
conda activate <env-name>
# lists installed packages
conda list
# install package
conda install <package name>
# update conda
conda update -n base conda
|
Environment file example
You can store the following into environment.yml
. It describes a my-env
environment on your computer.
| name: my-env
channels:
- defaults
- conda-forge
dependencies:
- python=3.8 # or 2.7 if you are feeling nostalgic
- numpy
- matplotlib
- pandas
- seaborn
|
Installation
For now I am simply going to refer to conda installation