Skip to main content

Installing Anaconda and Python

To learn machine learning, we will use the Python programming language in this tutorial. So, in order to use Python for machine learning, we need to install it in our computer system with compatible IDEs (Integrated Development Environment).

In this topic, we will learn to install Python and an IDE with the help of Anaconda distribution.

Anaconda distribution is a free and open-source platform for Python/R programming languages. It can be easily installed on any OS such as Windows, Linux, and MAC OS. It provides more than 1500 Python/R data science packages which are suitable for developing machine learning and deep learning models.

Anaconda distribution provides installation of Python with various IDE's such as Jupyter NotebookSpyderAnaconda promptetc. Hence it is a very convenient packaged solution which you can easily download and install in your computer. It will automatically install Python and some basic IDEs and libraries with it.

Below some steps are given to show the downloading and installing process of Anaconda and IDE:

Step-1: Download Anaconda Python:

  • To download Anaconda in your system, firstly, open your favorite browser and type Download Anaconda Python, and then click on the first link as given in the below image. Alternatively, you can directly download it by clicking on this link, https://www.anaconda.com/distribution/#download-section.
Installing Anaconda and Python
  • After clicking on the first link, you will reach to download page of Anaconda, as shown in the below image:
Installing Anaconda and Python
  • Since, Anaconda is available for Windows, Linux, and Mac OS, hence, you can download it as per your OS type by clicking on available options shown in below image. It will provide you Python 2.7 and Python 3.7 versions, but the latest version is 3.7, hence we will download Python 3.7 version. After clicking on the download option, it will start downloading on your computer.

Note: In this topic, we are downloading Anaconda for Windows you can choose it as per your OS.

Installing Anaconda and Python

Step- 2: Install Anaconda Python (Python 3.7 version):

Once the downloading process gets completed, go to downloads → double click on the ".exe" file (Anaconda3-2019.03-Windows-x86_64.exe) of Anaconda. It will open a setup window for Anaconda installations as given in below image, then click on Next.

Installing Anaconda and Python
  • It will open a License agreement window click on "I Agree" option and move further.
Installing Anaconda and Python
  • In the next window, you will get two options for installations as given in the below image. Select the first option (Just me) and click on Next.
Installing Anaconda and Python
  • Now you will get a window for installing location, here, you can leave it as default or change it by browsing a location, and then click on Next. Consider the below image:
Installing Anaconda and Python
  • Now select the second option, and click on install.
Installing Anaconda and Python
  • Once the installation gets complete, click on Next.
Installing Anaconda and Python
  • Now installation is completed, tick the checkbox if you want to learn more about Anaconda and Anaconda cloud. Click on Finish to end the process.
Installing Anaconda and Python

Note: Here, we will use the Spyder IDE to run Python programs.

Step- 3: Open Anaconda Navigator

  • After successful installation of Anaconda, use Anaconda navigator to launch a Python IDE such as Spyder and Jupyter Notebook.
  • To open Anaconda Navigator, click on window Key Installing Anaconda and Python and search for Anaconda navigator, and click on it. Consider the below image:
Installing Anaconda and Python
  • After opening the navigator, launch the Spyder IDE by clicking on the Launch button given below the Spyder. It will install the Spyder IDE in your system.
Installing Anaconda and Python

Run your Python program in Spyder IDE.

  • Open Spyder IDE, it will look like the below image:
Installing Anaconda and Python
  • Write your first program, and save it using the .py extension.
  • Run the program using the triangle Run button.
  • You can check the program's output on console pane at the bottom right side.

Step- 4: Close the Spyder IDE.



Anurag Rana

Comments

Popular posts from this blog

JAVA Scrollbar, MenuItem and Menu, PopupMenu

ava AWT Scrollbar The  object  of Scrollbar class is used to add horizontal and vertical scrollbar. Scrollbar is a  GUI  component allows us to see invisible number of rows and columns. AWT Scrollbar class declaration public   class  Scrollbar  extends  Component  implements  Adjustable, Accessible   Java AWT Scrollbar Example import  java.awt.*;   class  ScrollbarExample{   ScrollbarExample(){               Frame f=  new  Frame( "Scrollbar Example" );               Scrollbar s= new  Scrollbar();               s.setBounds( 100 , 100 ,  50 , 100 );               f.add(s);               f.setSize( 400 , 400 );               f.setLayout( null );               f.setVisible( true );   }   public   static   void  main(String args[]){           new  ScrollbarExample();   }   }   Output: Java AWT Scrollbar Example with AdjustmentListener import  java.awt.*;   import  java.awt.event.*;   class  ScrollbarExample{        ScrollbarExample(){               Frame f=  new  Frame( "Scro

Difference between net platform and dot net framework...

Difference between net platform and dot net framework... .net platform supports programming languages that are .net compatible. It is the platform using which we can build and develop the applications. .net framework is the engine inside the .net platform which actually compiles and produces the executable code. .net framework contains CLR(Common Language Runtime) and FCL(Framework Class Library) using which it produces the platform independent codes. What is the .NET Framework? The Microsoft .NET Framework is a platform for building, deploying, and running Web Services and applications. It provides a highly productive, standards-based, multi-language environment for integrating existing investments with next-generation applications and services as well as the agility to solve the challenges of deployment and operation of Internet-scale applications. The .NET Framework consists of three main parts: the common language runtime, a hierarchical set of unified class librari

Standard and Formatted Input / Output in C++

The C++ standard libraries provide an extensive set of input/output capabilities which we will see in subsequent chapters. This chapter will discuss very basic and most common I/O operations required for C++ programming. C++ I/O occurs in streams, which are sequences of bytes. If bytes flow from a device like a keyboard, a disk drive, or a network connection etc. to main memory, this is called   input operation   and if bytes flow from main memory to a device like a display screen, a printer, a disk drive, or a network connection, etc., this is called   output operation . Standard Input and Output in C++ is done through the use of  streams . Streams are generic places to send or receive data. In C++, I/O is done through classes and objects defined in the header file  <iostream> .  iostream  stands for standard input-output stream. This header file contains definitions to objects like  cin ,  cout , etc. /O Library Header Files There are following header files important to C++ pro