Miniconda in WSL

sfpear

Sabrina Pereira

Posted on September 27, 2022

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
💖 💪 🙅 🚩
sfpear
Sabrina Pereira

Posted on September 27, 2022

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related

Miniconda in WSL
datascience Miniconda in WSL

September 27, 2022