What is Anaconda for Python?
Anaconda is a an open source distribution of the Python and R programming languages and it is used in data science, machine learning, deep learning-related applications aiming at simplifying package management and deployment.Anaconda Distribution is used by over 7 million users, and it includes more than 300 data science packages suitable for Windows, Linux, and MacOS.
In this blog, we will be discussing how to install anaconda and write the first python programme.
Free Step-by-step Guide To Become A Data Scientist
Subscribe and get this detailed guide absolutely FREE
Does Anaconda come with Python?
Anaconda is one of several Python distributions. Python on it’s own is not going to be useful unless an IDE is installed. This is where Anaconda comes into picture.
Python distributions provide the Python interpreter, together with a list of Python editors,tools and packages.
How to Install Anaconda 5.x in Windows
Let’s get started with Anaconda 5.x installation
Step 1: Visit Anaconda website to download anaconda for windows. Click on Download
Step 2: Next, double click on setup and click on next.
Step 3: Click on “I agree” to Accept the agreement
Step 4: Click on “Just Me (recommended)” and click on Next.
Step 5: Retain default location and click next.
Step 6: Click on “Add anaconda to my Path environment variable”.
NOTE: This step is important because jupyter notebook cannot be accessed without this command prompt.
Step 7: Click on the Install Button and wait till the installation is complete.
Step 8: Click on finish.
NOTE: Now, the installation of Anaconda process is complete. If you want to access Jupyter notebook, continue the below steps.
Step 9: Open command prompt and type “jupyter notebook”.
Step 10: Once the command is given, the jupyter notebook will be opened by the browser automatically.
Step 11: Click on the “New” tab and select “Python 3” to create your first file.
Step 12: On clicking the python 3 file we get a screen as shown below where we can type the scripts and execute it.
import numpy as np np.random.seed(0) # Seed for Reproducibility x1 = np.random.randint(10, size=6) # One dimensional Array x2 = np.random.randint(10, size=(3,4)) # Two dimensional Array x3 = np.random.randint(10, size=(3,4,5)) # Three dimensional Array print(x1) print(x2) print(x3)
We hope this blog helped you installing anaconda and running your first python programme in windows. Keep visiting our websites www.acadgild.com for more posts on Data Science and other technologies.