Step-by-Step to Install Anaconda on Windows – Anaconda is the standard and most used distribution platform for python & R programming languages in the data science & machine learning community as it simplifies the installation of packages like PySpark, pandas, NumPy, SciPy, and many more.
In this article I will cover step-by-step instructions of how to install anaconda distribution, set up Jupyter Notebook, and run some examples on windows. In case you wanted to run pandas with Anaconda, use How to Run Pandas with Anaconda & Jupyter notebook
Steps to Install Anaconda on Windows
- Step 1. Download Anaconda windows version
- Step 2. Install Anaconda
- Step 3. Create Anaconda Environment
- Step 4. Install and Run Jupyter Notebook
1. Download & Install Anaconda Distribution for Windows
Follow the below step-by-step instructions to install Anaconda distribution on windows.
1.1 Download Anaconda Distribution
Go to https://anaconda.com/ and select Anaconda Individual Edition to download the latest version of Anaconda for windows. This downloads the
.exe file to the windows download folder.
1.2 Install Anaconda on Windows
Double click the .exe file to start the Anaconda installation, follow the below steps to complete the installation on windows
This completes the installation of Anaconda distribution, now let’s see how to create an environment and install Jupyter Notebook.
2. Create Anaconda Environment
A conda environment is a directory that contains a specific collection of conda packages that you have installed. For example, you may have one environment with NumPy 1.7 and its dependencies, and another environment with NumPy 1.6 for legacy testing.https://conda.io/docs/using/envs.html
2.1 Open Anaconda Navigator
Anaconda Navigator is a UI application where you can control the Anaconda packages, environment e.t.c, Open it from windows start or by searching it.
2.2 Create an Environment
Creating an environment is optional, but recommended to create an environment before you proceed. This gives complete segregation of different package installs for different projects you would be working on. If you already have an environment, you can use it too.
select + Create icon at the bottom of the screen to create an Anaconda environment.
3. Install and Run Jupyter Notebook
Once you create the anaconda environment, go back to the Home page on Anaconda Navigator and install Jupyter Notebook from an application on the right panel.
It will take a few seconds to install Jupyter to your environment, once the install completes, you can open Jupyter from the same screen or by accessing Anaconda Navigator -> Environments -> your environment (mine pandas-tutorial) -> select Open With Jupyter Notebook.
This opens up Jupyter Notebook in the default browser.
Now select New -> PythonX and enter the below lines and select Run. On Jupyter, each cell is a statement, so you can run each cell independently when there are no dependencies on previous cells.
This completes installing Anaconda on windows and running Jupyter Notebook. I have tried my best to lay out step-by-step instructions, In case I miss any or If you have any issues installing, please comment below. Your comments might help others.
Happy Learning !!
In this article you have learned how to install Anaconda distribution on windows and using Jupyter notebook. Anaconda is the most used distribution platform for python & R programming languages in the data science & machine learning community as it simplifies the installation of packages like pandas, NumPy, SciPy, and many more. Jupyter Notebook is an interactive web UI environment to create notebook documents for python, R languages. Jupyter Notebook documents take statements similar to REPL additionally it also provides code completion, plots, and rich media.