| Usage | Command | Description |
|---|---|---|
| Create | conda create --prefix ./env pandas numpy matplotlib scikit-learn jupyter |
Create Conda env & install packages |
| List Env | conda env list |
Listdown env currently activated |
| Activate | conda activate ./env |
Activate Conda virtual env |
| Install package | conda install jupyter |
|
| Update package | conda update scikit-learn=0.22 |
Can specify the version also |
| List Installed Package | conda list |
|
| Un-install Package | conda uninstall python scikit-learn |
To uninstall packages to re-install with the Latest version |
| Open Jupyter Notebook | jupyter notebook |
- Share a
.yml(pronounced YAM-L) file of your Conda environment .ymlis basically a text file with instructions to tell Conda how to set up an environment.- Step 1: Export
.ymlfile:conda env export --prefix {Path to env folder} > environment.yml
- Step 2: New PC, create an environment called
env_from_filefromenvironment.yml:conda env create --file environment.yml --name env_from_file
- Step 1: Export
| Function | Command | Description |
|---|---|---|
| Matplotlib | %matplotlib inline |
will make your plot outputs appear and be stored within the notebook. |
