Setting up Python and Anaconda

Experience low-code functionality by utilizing Azure Machine Learning studio to generate datasets. These datasets enable you to maintain a singular data copy within your storage, which will be referred to by the datasets themselves.

In this tutorial, we will utilize the Python programming language to acquire knowledge about machine learning. Therefore, it is imperative to have compatible Integrated Development Environments (IDEs) installed on our computer system to use Python for machine learning.

In this subject, we will gain knowledge about the installation of Python and an IDE facilitated by the Anaconda distribution.

The Anaconda distribution is an open-source and no-cost platform for programming languages like Python and R that can be effortlessly installed on various operating systems, including Windows, Linux, and MAC. With over 1500 packages for Python/R data science, it’s an ideal solution for those who want to develop machine learning and deep learning models.

Anaconda distribution offers a hassle-free solution to install Python along with a range of IDEs like Jupyter Notebook, Spyder, Anaconda prompt, among others. This packaged solution can be effortlessly downloaded and installed on your computer, and it automatically installs Python, a few essential IDEs, and libraries.

The process of downloading and installing Anaconda and IDE can be demonstrated through the following steps.

Step-1: Download Anaconda Python:
  • To acquire Anaconda software for your system, begin by opening a preferred browser. Then, either click the first link displayed in the image below after typing “Download Anaconda Python” or utilize this direct link: https://www.anaconda.com/distribution/#download-section.

Installing Anaconda and Python

  • Upon selecting the initial hyperlink, you will be directed to Anaconda’s download page, depicted in the image below.

Installing Anaconda and Python

  • Anaconda can be downloaded for Windows, Linux, or Mac OS by selecting the appropriate option from the image below. Both Python 2.7 and Python 3.7 versions are available, but it is recommended to download the latest version, which is Python 3.7. Once you click on the download option, Anaconda will start downloading to 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):

After the download process finishes, navigate to the “downloads” folder and double-click on the Anaconda3-2019.03-Windows-x86_64.exe file. This action will launch the setup window for Anaconda installations, which is displayed in the image below. Proceed by clicking on “Next”.


Installing Anaconda and Python

  • Once the License agreement window appears, proceed by selecting the “I Agree” option.

Installing Anaconda and Python

  • Upon reaching the subsequent window, two installation options will be presented to you, as displayed in the image below. Opt for the initial selection labeled as “Just me” and proceed by selecting “Next”.

Installing Anaconda and Python

  • Upon reaching the installation window, you may opt to leave the location as default or select a new one by browsing, before clicking the Next button. Please refer to the accompanying image for guidance.

Installing Anaconda and Python

  • Choose the second option and then proceed to select the “install” button.

Installing Anaconda and Python

  • After the completion of the installation process, select the option labeled as “Next”.

Installing Anaconda and Python

  • Once the installation is finished, you can choose to check the box for additional information on Anaconda and its cloud platform. Finally, click on “Finish” to complete the process.

Installing Anaconda and Python


Note:

Here, we will use the Spyder IDE to run Python programs.
Step- 3: Open Anaconda Navigator
  • Upon completing the installation of Anaconda, the Anaconda navigator can be utilized to launch various Python IDEs like Spyder and Jupyter Notebook.
  • To launch Anaconda Navigator, use the Windows key
    Installing Anaconda and Python
    to search for it and click on the application. The image below can guide you through the process.

Installing Anaconda and Python

  • The Spyder IDE can be launched by clicking on the “Launch” button located underneath its name in the navigator. This action will install the IDE onto your system.

Installing Anaconda and Python

Execute your Python code in the Spyder Integrated Development Environment (IDE).

  • Launch the Spyder IDE, and it will resemble the image displayed below.

Installing Anaconda and Python

  • Create and save your initial program with the file extension .py.
  • Execute the program by clicking on the “Run” button located next to the triangle symbol.
  • The program’s output is viewable on the console pane located at the bottom-right side.
Step- 4: Close the Spyder IDE.

Frequently Asked Questions