WSL Installation (windows)

WSL installation

To install Conda in WSL (Windows Subsystem for Linux), you can follow these steps:

Step 1: Install WSL and Set Up a Linux Distribution

You can find Ubunto(WSL) in Microsoft store

Step 2: Download and Install Miniconda or Anaconda

You can choose to install either Miniconda (a minimal installer for Conda) or Anaconda (a larger distribution including many scientific packages).

Install Anaconda

  1. Open your WSL terminal.

  2. Download the Anaconda installer script using wget or curl:

    Copy

    wget https://repo.anaconda.com/archive/Anaconda3-latest-Linux-x86_64.sh
  3. Run the installer script:

    Copy

    bash Anaconda3-latest-Linux-x86_64.sh
  4. Follow the prompts during the installation. Accept the license agreement, specify the installation path (default is usually fine), and choose whether to initialize Anaconda.

  5. Initialize Conda (if not done during installation):

    Copy

    source ~/anaconda3/bin/activate
  6. Update Conda to the latest version:

    Copy

    conda update conda

Step 3: Verify Installation

  1. Close and reopen your WSL terminal or run the following command to activate Conda:

    Copy

    source ~/.bashrc
  2. Verify that Conda is installed and working correctly:

    Copy

    conda --version

You should see the Conda version printed in the terminal, indicating that Conda has been successfully installed.

By following these steps, you will have Conda installed and ready to use in your WSL environment.

Last updated

Was this helpful?