Setup an Environment for Machine Learning and Deep Learning with Anaconda in Windows

Interest in Machine Learning and Deep Learning has exploded over the past decade. You see machine learning in computer science programs, industry conferences, and the Wall Street Journal almost daily.

In this story I will tell you how you can easily setup a python environment on your system. But this guide is also suitable for Ubuntu & Linux users. It can be difficult to install a Python machine learning environment on some platforms.

After completing this tutorial, you will have a working Python environment to begin learning, practicing, and developing machine learning and deep learning software.

Let’s just get straight to the installation process.

Overview

In this tutorial, we will cover the following steps:

  1. Download Anaconda
  2. Install Anaconda & Python
  3. Start and Update Anaconda
  4. Install CUDA Tookit & cuDNN
  5. Create an Anaconda Environment
  6. Install Deep Learning Libraries

Step 1: Download Anaconda

In this step, we will download the Anaconda Python package for your platform.

Anaconda is a free and easy-to-use environment for scientific Python.

  • 1.Install Anaconda (Python 3.6 version) Download

Step 2: Install Anaconda

In this step, we will install the Anaconda Python software on your system.

Installation is very easy and quick once you download the setup. Open the setup and follow the wizard instructions.

#Note: It will automatically install Python and some basic libraries with it.

It might take 5 to 10 minutes or some more time according to your system.

Step 3: Update Anaconda

Open Anaconda Prompt to type the following command(s). Don’t worry Anaconda Prompt is just works same as cmd.

conda update conda
conda update --all

Step 4: Install CUDA Tookit & cuDNN

  1. Install CUDA Tookit 9.0 or 8.0 Download

Choose your version depending on your Operating System and GPU.

#Note: Kindly choose the CUDA version according to your Nvidia GPU version to avoid errors.

#Note: People with version 9.0 Download only have to install the given patch also. If you are using 8.0 or 9.1 than its not recommended for you.

2. Download cuDNN Download

Choose your version depending on your Operating System. Membership registration is required. Don’t worry you can easily create account using your email.

Step 5: Create an Anaconda Environment

Here we will create a new anaconda environment for our specific usage so that it will not affect the root of Anaconda.

Open Anaconda Prompt to type the following command(s)

  1. Create a conda environment named tensorflow by invoking the following command:
conda create -n tensorflow pip python=3.5

2. Activate the conda environment by issuing the following command:

activate tensorflow
(tensorflow)C:> # Your prompt should change

Source: Deep Learning on Medium