DEV Community

Sabrina Pereira
Sabrina Pereira

Posted on • Edited on

33

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

Hostinger image

Get n8n VPS hosting 3x cheaper than a cloud solution

Get fast, easy, secure n8n VPS hosting from $4.99/mo at Hostinger. Automate any workflow using a pre-installed n8n application and no-code customization.

Start now

Top comments (4)

Collapse
 
chuongmep profile image
chuongmep

The tutorial don't have anything talk about how to set path environment ?

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

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Engage with a wealth of insights in this thoughtful article, valued within the supportive DEV Community. Coders of every background are welcome to join in and add to our collective wisdom.

A sincere "thank you" often brightens someone’s day. Share your gratitude in the comments below!

On DEV, the act of sharing knowledge eases our journey and fortifies our community ties. Found value in this? A quick thank you to the author can make a significant impact.

Okay