Configuring Anaconda for Windows 10

Motivations

Why Anaconda? Well, it allows you to install different (and potentially conflicting) version of Python libraries on your computer without the risk of it bricking your base Python install.

Installing Anaconda

  1. Download miniconda from anaconda.com for the version of Python and your particular operating system.
  2. Follow the installer instructions. I installed it with the following settings:

Adding Anaconda to PATH

If you didn't choose the Add to Path option above, complete the following steps:
  1. Edit the PATH system variable:
  2. Depending on whether you installed for a single user or for all users, add the following entry in your environment variable:
  3. Test that it works by opening up a new Command Prompt window and run the conda --version command

Allowing Conda to work in Git Bash

Creating Environments in Anaconda

Now that everything is set up, we can create environments in Anaconda using the following command:

conda create --name $envName python=$pyVersion

This command can also conda install pytorch torchvision torchaudio cpuonly -c pytorch