DEV Community

Sabrina Pereira
Sabrina Pereira

Posted on • Edited on

Miniconda in WSL

Install

Download the latest version of miniconda:

wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
Enter fullscreen mode Exit fullscreen mode

Install it:

bash Miniconda3-latest-Linux-x86_64.sh
Enter fullscreen mode Exit fullscreen mode

After Installation

To install conda's shell functions, first restart your shell, then:

conda init
Enter fullscreen mode Exit fullscreen mode

If you'd prefer that conda's base environment is not activated on startup, set the auto_activate_base parameter to false:

conda config --set auto_activate_base false
Enter fullscreen mode Exit fullscreen mode

Remove the installation file from your directory:

rm Miniconda3-latest-Linux-x86_64.sh
Enter fullscreen mode Exit fullscreen mode

Using Miniconda

To get into your conda environment

conda activate
Enter fullscreen mode Exit fullscreen mode

To create a new environment:

conda create --name <new-env-name> 
Enter fullscreen mode Exit fullscreen mode

To view all your environments:

conda env list
Enter fullscreen mode Exit fullscreen mode

Conda cheat sheet PDF here.

Other useful things to know

Open current directory in file explorer

explorer.exe .
Enter fullscreen mode Exit fullscreen mode

Top comments (3)

Collapse
 
debapriyadas profile image
Debapriya Das

Very useful and straight-forward.

Collapse
 
zeerau profile image
Zarau baidu

thank you for this brief guide. simple and easy

Collapse
 
aweheid profile image
AWeheid

I really appreciate quick straight forward guidance. Thanks alot! It's very clear