Install Anaconda and create virtual environment on Windows

In this chapter, we will provide a step-by-step guide on how to install Anaconda on the Windows operating system and create a virtual environment for your development work. Anaconda is a popular tool that simplifies the use of Python and other programming languages while enabling easy management of various packages and dependencies.

What is Anaconda?

Anaconda is an open-source distribution of Python and R that simplifies package management and deployment, especially for data science, machine learning, and scientific computing. It comes with Conda, a powerful package and environment manager, allowing users to create isolated environments for different projects, preventing dependency conflicts.

How to download Anaconda (Quick Steps)

  1. Open download page
  2. Download Windows installer
  3. Run Anaconda installer
  4. Select installation options
  5. Wait for installation
  6. Launch Anaconda Navigator
  7. Installation completed

How to create virtual environment (Quick Steps)

  1. Open environment menu
  2. Create a new environment
  3. Wait for environment creation
  4. Open environment in terminal
  5. Virtual environment created

Download Anaconda (Video tutorial)

In this video, you will learn how to download and install Anaconda on a Windows system. We will guide you through the entire process, from accessing the official Anaconda website to completing the installation and verifying that everything is set up correctly. By the end of the video, you will have Anaconda installed and ready to use for your development projects.

Step 1 - Open download page

First, to download, open the Anaconda page and click on "Skip registration" to go to the download page (Figure 1).

Open download page
Figure 1 - Open download page

Step 2 - Download Windows installer

Choose the installer that suits your operating system. In this case, the Windows installer will be downloaded (Figure 2).

Download windows installer
Figure 2 - Download windows installer

Step 3 - Anaconda installer

Open the installer and click "Next" to continue (Figure 3).

Anaconda installer
Figure 3 - Anaconda installer

Step 4 - Select install options

After selecting the terms and conditions and the installation location, tick the "Create shortcuts" and "Register Anaconda3 as my default Python 3.12" options and click "Install" (Figure 4).

Select install options
Figure 4 - Select install options

Step 5 - Install process

The installation has started, wait until it is finished (Figure 5).

Install process
Figure 5 - Install process

Step 6 - Launch Anaconda Navigator

When the installation is complete, you will be offered the option to automatically launch the program by ticking the "Launch Anaconda Navigator" option, then click on "Finish" (Figure 6).

Launch Anaconda navigator
Figure 6 - Launch Anaconda Navigator

Step 7 - Anaconda Navigator opened

When you open Anaconda Navigator, you will be greeted by the following window, as you can see in the picture (Figure 7).

Anaconda navigator opened
Figure 7 - Anaconda Navigator opened

Create virtual environment (Video tutorial)

In this video, you will learn how to create a virtual environment using Anaconda. We will guide you through the process step by step, from opening Anaconda Navigator or the command prompt to setting up and activating a new environment. By the end of this tutorial, you will have a fully functional virtual environment ready for your projects.

Step 8 - Open environment menu

When you open Anaconda Navigator, select "Enviroments" on the left (Figure 8).

Open environment menu
Figure 8 - Open environment menu

Step 9 - Create new environment

To create a new environment, at the bottom of the screen click on "Create". A "Create New Environment" window will appear, enter a name, such as "ai-vision", and then click "Create" to proceed (Figure 9).

Create new environment
Figure 9 - Create new environment

Step 10 - Open environment in terminal

Wait until the enviroment is created, after it is successfully created you will see a small green start button. Click on it and select the "Open Terminal" option (Figure 10).

Open environment in terminal
Figure 10 - Open environment in terminal

Step 11 - Virtual environment opened

You can see the successfully created "ai-vision" virtual environment in a command line window (Figure 11).

Virtual environment opened
Figure 11 - Virtual environment opened

More information