{"id":3889,"date":"2021-05-21T17:52:03","date_gmt":"2021-05-21T12:22:03","guid":{"rendered":"https:\/\/blog.guvi.in\/?p=3889"},"modified":"2025-10-27T15:42:35","modified_gmt":"2025-10-27T10:12:35","slug":"how-to-setup-a-python-environment-for-machine-learning","status":"publish","type":"post","link":"https:\/\/www.guvi.in\/blog\/how-to-setup-a-python-environment-for-machine-learning\/","title":{"rendered":"How to Setup a Python Environment for Machine Learning?"},"content":{"rendered":"\n<p><p>Are you struggling to set up a Python environment for Machine Learning? By the way, Python is an <a href=\"https:\/\/www.guvi.in\/blog\/reasons-to-choose-python-for-machine-learning\/\">exciting programming language.&nbsp;<\/a>But installing it can be a bit tricky for beginners sometimes.&nbsp;<\/p>\n<p><img decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/cdn.analyticsvidhya.com\/wp-content\/uploads\/2021\/01\/26552macOS-python3-virtualenv.jpg\" alt=\"Virtual Environment for Machine Learning and Deep Learning on MacOS\" title=\"\"><\/p><\/p>\n\n\n\n<p>So here is the guide to you along the way.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>The Tools you need to run Python Code<\/strong><\/h2>\n\n\n\n<p>Before installation of python and setup of python Environment, let\u2019s see the python tools, which are used to run python code.<\/p>\n\n\n\n<p>The following tools are used to run python code.<\/p>\n\n\n\n<ol>\n<li><a href=\"https:\/\/www.python.org\/downloads\/\" rel=\"nofollow noopener\" target=\"_blank\"><strong>Python Tool<\/strong><\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/visualstudio.microsoft.com\/downloads\/\" rel=\"nofollow noopener\" target=\"_blank\"><strong>Visual Studio<\/strong><\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.jetbrains.com\/pycharm\/download\/#section=windows\" rel=\"nofollow noopener\" target=\"_blank\"><strong>PyCharm<\/strong><\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.sublimetext.com\/3\" rel=\"nofollow noopener\" target=\"_blank\"><strong>Sublime Text Editor<\/strong><\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.anaconda.com\/download\" rel=\"nofollow noopener\" target=\"_blank\"><strong>Anaconda<\/strong><\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/docs.conda.io\/en\/latest\/miniconda.html\" rel=\"nofollow noopener\" target=\"_blank\"><strong>Miniconda<\/strong><\/a><strong>&nbsp;<\/strong><\/li>\n\n\n\n<li><a href=\"https:\/\/jupyter.org\/\" rel=\"nofollow noopener\" target=\"_blank\"><strong>Jupyter Notebook&nbsp;<\/strong><\/a><\/li>\n<\/ol>\n\n\n\n<p>You can easily download any of the above from the above-mentioned links. Just install it directly by double-clicking on the downloaded setup. And then follow the instruction up to the finish button.<\/p>\n\n\n\n<p>You can use any of the above to write and run a Python script. However, for <strong>Data Analysis<\/strong>, <strong>Machine Learning programming, <\/strong>and <strong>Deep Learning<\/strong> programming,<strong> we have to use Anaconda or Miniconda <\/strong>because&nbsp;<\/p>\n\n\n\n<ol>\n<li>Firstly, it can be difficult to set up a python machine learning environment on some platforms.&nbsp;<\/li>\n\n\n\n<li>And secondly, if we need to install a python tool and then install other necessary packages. This can be a confusing task for a beginner user.<\/li>\n<\/ol>\n\n\n\n<p><strong><em>Make sure you understand machine learning fundamentals like Python, SQL, deep learning, data cleaning, and cloud services before we explore them in the next section. Consider joining\u00a0HCL GUVI\u2019s <a href=\"https:\/\/www.guvi.in\/zen-class\/artificial-intelligence-and-machine-learning-course\/\" target=\"_blank\" rel=\"noreferrer noopener\">Artificial Intelligence &amp; Machine Learning Course<\/a>, which covers tools like Pyspark API, Natural Language Processing, and many more and helps you get hands-on experience by building real-time projects.<\/em><\/strong><\/p>\n\n\n\n<p><strong><em>Additionally, to better understand Python, consider enrolling in\u00a0HCL GUVI\u2019s <a href=\"https:\/\/www.guvi.in\/courses\/programming\/python\/?utm_source=blog&amp;utm_medium=hyperlink&amp;utm_campaign=python-environment-for-machine-learning\" target=\"_blank\" rel=\"noreferrer noopener\">Python course<\/a>\u00a0to help you with the fundamentals of this widely used programming language<\/em><\/strong>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Which is better for your computer? Miniconda or Anaconda<\/strong><\/h2>\n\n\n\n<p><p>Before we start the setup of Miniconda or Anaconda, you have to first understand what would be a good choice for your computer?<\/p>\n<ul>\n<li>If you install <strong>Miniconda <\/strong>then you don\u2019t need to take care of memory space.<\/li>\n<li>On the other hand, for <strong>Anaconda<\/strong>, you need a minimum of 5GB of memory space. Otherwise, your computer will not respond. Or your program will not work properly on your computer.<\/li>\n<\/ul>\n<p><img decoding=\"async\" class=\"wp-image-4275 aligncenter\" src=\"http:\/\/blog.guvi.in\/wp-content\/uploads\/2021\/05\/Anaconda-and-Miniconda-300x169.png\" alt=\"setup Python environment for machine learning\" width=\"511\" height=\"288\" srcset=\"https:\/\/www.guvi.in\/blog\/wp-content\/uploads\/2021\/05\/Anaconda-and-Miniconda-300x169.png 300w, https:\/\/www.guvi.in\/blog\/wp-content\/uploads\/2021\/05\/Anaconda-and-Miniconda-1024x576.png 1024w, https:\/\/www.guvi.in\/blog\/wp-content\/uploads\/2021\/05\/Anaconda-and-Miniconda-768x432.png 768w, https:\/\/www.guvi.in\/blog\/wp-content\/uploads\/2021\/05\/Anaconda-and-Miniconda-800x450.png 800w, https:\/\/www.guvi.in\/blog\/wp-content\/uploads\/2021\/05\/Anaconda-and-Miniconda.png 1280w\" sizes=\"(max-width: 511px) 100vw, 511px\" title=\"\"><\/p>\n<p>Firstly, let&#8217;s see the system requirements of installing Anaconda and Miniconda<\/p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>System Requirements for Installing Anaconda&nbsp;<\/strong><\/h2>\n\n\n\n<p>To set up Anaconda on your computer, first, check the following system requirements.&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>#1 Operating system<\/strong><\/h3>\n\n\n\n<p><p>Windows 8 or later, 64-bit macOS 10.13 or later, Linux including Ubuntu, RedHat, CentOS 6 or later.<\/p>\n<p>If your operating system is older, you can find older versions of the Anaconda installers <a href=\"https:\/\/repo.anaconda.com\/archive\/\" rel=\"nofollow noopener\" target=\"_blank\">here<\/a>.<\/p>\n<h3><strong>#2 System architecture<\/strong><\/h3><\/p>\n\n\n\n<p>Windows- 64-bit x86, 32-bit x86; MacOS- 64-bit x86; Linux- 64-bit x86, 64-bit Power8\/Power9.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>#3 Space Requirements<\/strong><\/h3>\n\n\n\n<p>Minimum 5 GB disk space is required to download and install. If you have less space, you can install Miniconda instead of Anaconda. The commands are similar for both.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>System Requirements for Installing Miniconda<\/strong><\/h2>\n\n\n\n<p>The above system requirement is also applicable to <strong>Miniconda<\/strong> excluding memory space.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Python environment setup steps for Anaconda and Miniconda<\/strong><\/h2>\n\n\n\n<p><p>Before we dive into the python environment setup steps for Anaconda and Miniconda let&#8217;s take a look at basic OS procedures.<\/p>\n<ul>\n<li>These steps are common for Windows, Mac OS X, and Linux Platforms&nbsp;<\/li>\n<li>But there is only one difference when we use Windows systems. There we need to open a command prompt and write command accordingly&nbsp;<\/li>\n<li>And for Mac OS X or Linux, we need to open a terminal and write commands accordingly.<\/li>\n<\/ul><\/p>\n\n\n\n<h3><strong>Download and run Setup For Anaconda- Python Environment for Machine Learning<\/strong><\/h3>\r\n<h4><strong>1. Download Anaconda setup from its website<\/strong><\/h4>\r\n<ul>\r\n<li>Open the <a href=\"https:\/\/www.anaconda.com\/products\/individual\" rel=\"nofollow noopener\" target=\"_blank\">Anaconda Package link<\/a> on any browser<\/li>\r\n<\/ul>\r\n<p><img decoding=\"async\" class=\"wp-image-3895 size-full aligncenter\" src=\"http:\/\/blog.guvi.in\/wp-content\/uploads\/2021\/04\/Download-Anaconda-Setup.png\" alt=\"Download Anaconda Setup\" width=\"512\" height=\"342\" srcset=\"https:\/\/www.guvi.in\/blog\/wp-content\/uploads\/2021\/04\/Download-Anaconda-Setup.png 512w, https:\/\/www.guvi.in\/blog\/wp-content\/uploads\/2021\/04\/Download-Anaconda-Setup-300x200.png 300w\" sizes=\"(max-width: 512px) 100vw, 512px\" title=\"\"><\/p>\r\n<ul>\r\n<li>Click on Download Button<\/li>\r\n<li>Choose Anaconda 32 bit or 64-bit Installer as per your platform (Windows, OS X, Linux) requirement<\/li>\r\n<\/ul>\r\n<p><img decoding=\"async\" class=\"aligncenter wp-image-3896 size-full\" src=\"http:\/\/blog.guvi.in\/wp-content\/uploads\/2021\/04\/Anaconda-Installer-for-Window-MacOs-Linux.png\" alt=\"Anaconda Installer for Window, MacOs, &amp; Linux\" width=\"1205\" height=\"418\" srcset=\"https:\/\/www.guvi.in\/blog\/wp-content\/uploads\/2021\/04\/Anaconda-Installer-for-Window-MacOs-Linux.png 1205w, https:\/\/www.guvi.in\/blog\/wp-content\/uploads\/2021\/04\/Anaconda-Installer-for-Window-MacOs-Linux-300x104.png 300w, https:\/\/www.guvi.in\/blog\/wp-content\/uploads\/2021\/04\/Anaconda-Installer-for-Window-MacOs-Linux-1024x355.png 1024w, https:\/\/www.guvi.in\/blog\/wp-content\/uploads\/2021\/04\/Anaconda-Installer-for-Window-MacOs-Linux-768x266.png 768w\" sizes=\"(max-width: 1205px) 100vw, 1205px\" title=\"\"><\/p>\r\n<h4><strong>2. Run Anaconda Setup<\/strong><\/h4>\r\n<ul>\r\n<li>To run Anaconda setup, double click on downloaded Anaconda setup. You may also perform this by right-clicking on setup. Then run it as <strong>Run as administrator<\/strong>.<\/li>\r\n<\/ul>\r\n<p><img decoding=\"async\" class=\"aligncenter wp-image-3919 \" src=\"http:\/\/blog.guvi.in\/wp-content\/uploads\/2021\/04\/Anaconda-Setup-Run-as-administrator.png\" alt=\"Anaconda Setup Run as administrator\" width=\"517\" height=\"134\" srcset=\"https:\/\/www.guvi.in\/blog\/wp-content\/uploads\/2021\/04\/Anaconda-Setup-Run-as-administrator.png 452w, https:\/\/www.guvi.in\/blog\/wp-content\/uploads\/2021\/04\/Anaconda-Setup-Run-as-administrator-300x78.png 300w\" sizes=\"(max-width: 517px) 100vw, 517px\" title=\"\"><\/p>\r\n<ul>\r\n<li>Then follow the instruction up to the finish button.<\/li>\r\n<\/ul>\r\n<p><img decoding=\"async\" class=\"aligncenter wp-image-3925 size-full\" src=\"http:\/\/blog.guvi.in\/wp-content\/uploads\/2021\/04\/Anaconda3-2020.-11-64-bit-Setup.png\" alt=\"Anaconda3 2020. 11 (64-bit) Setup\" width=\"509\" height=\"400\" srcset=\"https:\/\/www.guvi.in\/blog\/wp-content\/uploads\/2021\/04\/Anaconda3-2020.-11-64-bit-Setup.png 509w, https:\/\/www.guvi.in\/blog\/wp-content\/uploads\/2021\/04\/Anaconda3-2020.-11-64-bit-Setup-300x236.png 300w\" sizes=\"(max-width: 509px) 100vw, 509px\" title=\"\"><\/p>\r\n<h3><strong>Download and Run Setup For Minic<\/strong><\/h3>\r\n<p><img decoding=\"async\" class=\" wp-image-3924 aligncenter\" src=\"http:\/\/blog.guvi.in\/wp-content\/uploads\/2021\/04\/Anaconda3-2020.11-64-bit-Setup-License-Agreement-300x237.png\" alt=\"Anaconda3 2020.11 (64-bit) Setup License Agreement\" width=\"486\" height=\"384\" srcset=\"https:\/\/www.guvi.in\/blog\/wp-content\/uploads\/2021\/04\/Anaconda3-2020.11-64-bit-Setup-License-Agreement-300x237.png 300w, https:\/\/www.guvi.in\/blog\/wp-content\/uploads\/2021\/04\/Anaconda3-2020.11-64-bit-Setup-License-Agreement.png 510w\" sizes=\"(max-width: 486px) 100vw, 486px\" title=\"\"><\/p>\r\n<h3><strong>Conda-Python Environment for Machine Learning<\/strong><\/h3>\r\n<h4><strong>1. Download Miniconda setup from its website<\/strong><\/h4>\r\n<ul>\r\n<li>Open the Miniconda Package link on any browser.<\/li>\r\n<\/ul>\r\n<p><img decoding=\"async\" class=\" wp-image-3923 aligncenter\" src=\"http:\/\/blog.guvi.in\/wp-content\/uploads\/2021\/04\/Download-and-Run-Setup-for-Miniconda-300x243.png\" alt=\"Download and Run Setup for Miniconda\" width=\"448\" height=\"362\" srcset=\"https:\/\/www.guvi.in\/blog\/wp-content\/uploads\/2021\/04\/Download-and-Run-Setup-for-Miniconda-300x243.png 300w, https:\/\/www.guvi.in\/blog\/wp-content\/uploads\/2021\/04\/Download-and-Run-Setup-for-Miniconda.png 395w\" sizes=\"(max-width: 448px) 100vw, 448px\" title=\"\"><\/p>\r\n<ul>\r\n<li>Click on the Miniconda Installer link as per your platform (Windows, OS X, Linux).<\/li>\r\n<li>Click on Python version 2 or 3 for 32 bit or 64-bit Installer link as per your platform (Windows, OS X, Linux) requirement<\/li>\r\n<\/ul>\r\n<p><img decoding=\"async\" class=\" wp-image-3922 aligncenter\" src=\"http:\/\/blog.guvi.in\/wp-content\/uploads\/2021\/04\/Download-Miniconda-Windows-Installers-280x300.png\" alt=\"Download Miniconda Windows Installers\" width=\"474\" height=\"506\" title=\"\"><\/p>\r\n<p><img decoding=\"async\" class=\" wp-image-3921 aligncenter\" src=\"http:\/\/blog.guvi.in\/wp-content\/uploads\/2021\/04\/Download-MacOSX-Installers-300x223.png\" alt=\"Download MacOSX Installers\" width=\"450\" height=\"335\" srcset=\"https:\/\/www.guvi.in\/blog\/wp-content\/uploads\/2021\/04\/Download-MacOSX-Installers-300x223.png 300w, https:\/\/www.guvi.in\/blog\/wp-content\/uploads\/2021\/04\/Download-MacOSX-Installers.png 386w\" sizes=\"(max-width: 450px) 100vw, 450px\" title=\"\"><\/p>\r\n<p><img decoding=\"async\" class=\" wp-image-3920 aligncenter\" src=\"http:\/\/blog.guvi.in\/wp-content\/uploads\/2021\/04\/Download-Miniconda-Linux-Installers-300x205.png\" alt=\"Download Miniconda Linux Installers\" width=\"430\" height=\"294\" srcset=\"https:\/\/www.guvi.in\/blog\/wp-content\/uploads\/2021\/04\/Download-Miniconda-Linux-Installers-300x205.png 300w, https:\/\/www.guvi.in\/blog\/wp-content\/uploads\/2021\/04\/Download-Miniconda-Linux-Installers.png 425w\" sizes=\"(max-width: 430px) 100vw, 430px\" title=\"\"><\/p>\r\n<h4><strong>2. Run Miniconda Setup<\/strong><\/h4>\r\n<ul>\r\n<li>To run Miniconda setup.<\/li>\r\n<li>Double click on downloaded Miniconda setup (or)<\/li>\r\n<li>Right-click on setup and run it as Run as administrator.<\/li>\r\n<\/ul>\r\n<p><img decoding=\"async\" class=\" wp-image-3918 aligncenter\" src=\"http:\/\/blog.guvi.in\/wp-content\/uploads\/2021\/04\/Miniconda-Setup-and-Run-as-administrator-300x89.png\" alt=\"Miniconda Setup and Run as administrator\" width=\"439\" height=\"130\" srcset=\"https:\/\/www.guvi.in\/blog\/wp-content\/uploads\/2021\/04\/Miniconda-Setup-and-Run-as-administrator-300x89.png 300w, https:\/\/www.guvi.in\/blog\/wp-content\/uploads\/2021\/04\/Miniconda-Setup-and-Run-as-administrator.png 426w\" sizes=\"(max-width: 439px) 100vw, 439px\" title=\"\"><\/p>\r\n<p>Then follow the instruction up to the finish button.\u00a0<\/p>\r\n<p><img decoding=\"async\" class=\" wp-image-3917 aligncenter\" src=\"http:\/\/blog.guvi.in\/wp-content\/uploads\/2021\/04\/Miniconda3-py38_4.9.2-64-bit-Setup-300x236.png\" alt=\"Miniconda3 py38_4.9.2 (64-bit) Setup\" width=\"480\" height=\"378\" srcset=\"https:\/\/www.guvi.in\/blog\/wp-content\/uploads\/2021\/04\/Miniconda3-py38_4.9.2-64-bit-Setup-300x236.png 300w, https:\/\/www.guvi.in\/blog\/wp-content\/uploads\/2021\/04\/Miniconda3-py38_4.9.2-64-bit-Setup.png 508w\" sizes=\"(max-width: 480px) 100vw, 480px\" title=\"\"><\/p>\r\n<p><img decoding=\"async\" class=\"aligncenter wp-image-3916 \" src=\"http:\/\/blog.guvi.in\/wp-content\/uploads\/2021\/04\/Miniconda3-Setup-License-Agreement.png\" alt=\"Miniconda3 Setup License Agreement\" width=\"481\" height=\"380\" srcset=\"https:\/\/www.guvi.in\/blog\/wp-content\/uploads\/2021\/04\/Miniconda3-Setup-License-Agreement.png 508w, https:\/\/www.guvi.in\/blog\/wp-content\/uploads\/2021\/04\/Miniconda3-Setup-License-Agreement-300x237.png 300w\" sizes=\"(max-width: 481px) 100vw, 481px\" title=\"\"><\/p>\r\n<p><strong>Note:<\/strong><br \/>To run setup in Mac OS X or Linux\/Ubuntu, we can use the terminal also.<\/p>\r\n<p><strong>For example<\/strong>, Anaconda installation on Linux\/Ubuntu:<\/p>\r\n<ul>\r\n<li>Anaconda\/ Miniconda Running steps For Windows<\/li>\r\n<\/ul>\r\n<p><img decoding=\"async\" class=\"aligncenter wp-image-3915 size-full\" src=\"http:\/\/blog.guvi.in\/wp-content\/uploads\/2021\/04\/Anaconda-installation-on-Linux-and-Ubuntu.png\" alt=\"Anaconda installation on Linux Ubuntu\" width=\"512\" height=\"151\" srcset=\"https:\/\/www.guvi.in\/blog\/wp-content\/uploads\/2021\/04\/Anaconda-installation-on-Linux-and-Ubuntu.png 512w, https:\/\/www.guvi.in\/blog\/wp-content\/uploads\/2021\/04\/Anaconda-installation-on-Linux-and-Ubuntu-300x88.png 300w\" sizes=\"(max-width: 512px) 100vw, 512px\" title=\"\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>How to Verify Anaconda \/ Miniconda Installation<\/strong><\/h2>\n\n\n\n<h3><strong>1. Windows<\/strong><\/h3>\r\n<p>We can check Anaconda \/ Miniconda Installation on windows in two ways.<\/p>\r\n<ul>\r\n<li>Open a system command prompt and write the command as <strong>conda<\/strong>.<\/li>\r\n<li>Open Anaconda prompt from system menu options by searching anaconda in the search tab.<\/li>\r\n<\/ul>\r\n<p><img decoding=\"async\" class=\"aligncenter wp-image-3913 \" src=\"http:\/\/blog.guvi.in\/wp-content\/uploads\/2021\/04\/Window-Search-box-Anaconda-prompt.png\" alt=\"Window Search box Anaconda prompt\" width=\"405\" height=\"460\" title=\"\"><\/p>\r\n<p><strong>Note<\/strong>: Don\u2019t use Miniconda and Anaconda together. We can check the <strong>conda<\/strong> version by writing the command as conda\u00a0 -V in the system\/Anaconda prompt.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>2. Mac<\/strong><\/h3>\n\n\n\n<p>We can check Anaconda \/ Miniconda Installation on Mac in two ways.<\/p>\n\n\n\n<ul>\r\n<li>Open a terminal and write the command as <strong>conda<\/strong>.<\/li>\r\n<\/ul>\r\n<p><img decoding=\"async\" class=\"aligncenter wp-image-3912 \" src=\"http:\/\/blog.guvi.in\/wp-content\/uploads\/2021\/04\/Anaconda-and-Miniconda-Installation-on-Mac.png\" alt=\"Anaconda Miniconda Installation on Mac\" width=\"448\" height=\"66\" srcset=\"https:\/\/www.guvi.in\/blog\/wp-content\/uploads\/2021\/04\/Anaconda-and-Miniconda-Installation-on-Mac.png 386w, https:\/\/www.guvi.in\/blog\/wp-content\/uploads\/2021\/04\/Anaconda-and-Miniconda-Installation-on-Mac-300x44.png 300w\" sizes=\"(max-width: 448px) 100vw, 448px\" title=\"\"><\/p>\r\n<ul>\r\n<li>Open spotlight searches and write <strong>Anaconda<\/strong> to open Anaconda terminal.<\/li>\r\n<\/ul>\r\n<p><img decoding=\"async\" class=\"aligncenter wp-image-3911 \" src=\"http:\/\/blog.guvi.in\/wp-content\/uploads\/2021\/04\/Spotlight-Search-to-open-Anaconda-Terminal.png\" alt=\"Spotlight Search to open Anaconda Terminal\" width=\"455\" height=\"61\" srcset=\"https:\/\/www.guvi.in\/blog\/wp-content\/uploads\/2021\/04\/Spotlight-Search-to-open-Anaconda-Terminal.png 374w, https:\/\/www.guvi.in\/blog\/wp-content\/uploads\/2021\/04\/Spotlight-Search-to-open-Anaconda-Terminal-300x40.png 300w\" sizes=\"(max-width: 455px) 100vw, 455px\" title=\"\"><\/p>\n\n\n\n\n\n\n\n\n\n<p><strong>Note<\/strong>: The steps of windows installation from 3 to 7 is the same for Mac OS X. But only use terminal and spotlight search instead of command prompt and search bar of windows respectively.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>3. Linux&nbsp;<\/strong><\/h3>\n\n\n\n<p><p>We can check Anaconda \/ Miniconda Installation on Linux &#8211; Ubuntu in two ways.<\/p>\n<ul>\n<li>Open application &#8212; &gt; System Tools &#8212; &gt; Terminal and write command as conda for Linux-CentOS (or)<\/li>\n<li>Open Dash by clicking the upper left Ubuntu Icon &#8212; &gt; Type terminal and write command as conda for Linux-Ubuntu<\/li>\n<\/ul>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-3910 size-full\" src=\"http:\/\/blog.guvi.in\/wp-content\/uploads\/2021\/04\/Anaconda-and-Miniconda-Installation-on-Linux-Ubuntu.png\" alt=\"Anaconda installation on Linux Ubuntu\" width=\"498\" height=\"62\" srcset=\"https:\/\/www.guvi.in\/blog\/wp-content\/uploads\/2021\/04\/Anaconda-and-Miniconda-Installation-on-Linux-Ubuntu.png 498w, https:\/\/www.guvi.in\/blog\/wp-content\/uploads\/2021\/04\/Anaconda-and-Miniconda-Installation-on-Linux-Ubuntu-300x37.png 300w\" sizes=\"(max-width: 498px) 100vw, 498px\" title=\"\"><\/p>\n<ul>\n<li>Then, open the search bar of Linux and write Anaconda to open the Anaconda terminal.<\/li>\n<\/ul>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-3909 \" src=\"http:\/\/blog.guvi.in\/wp-content\/uploads\/2021\/04\/Linux-Search-bar-to-open-Anaconda-Terminal.png\" alt=\"Linux Search bar to open Anaconda Terminal\" width=\"496\" height=\"321\" srcset=\"https:\/\/www.guvi.in\/blog\/wp-content\/uploads\/2021\/04\/Linux-Search-bar-to-open-Anaconda-Terminal.png 454w, https:\/\/www.guvi.in\/blog\/wp-content\/uploads\/2021\/04\/Linux-Search-bar-to-open-Anaconda-Terminal-300x194.png 300w\" sizes=\"(max-width: 496px) 100vw, 496px\" title=\"\"><\/p>\n<p><strong>Note<\/strong>: The steps of windows installation from 3 to 7 is the same for Linux\/Ubuntu. But only use terminal and respective search tab instead of command prompt and search bar of windows respectively.<\/p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>How to Check Anaconda\/ Miniconda Package Details<\/strong><\/h2>\n\n\n\n<ul>\r\n<li>We can check Anaconda\/Miniconda packages by writing commands as<strong> conda list<\/strong> in the system\/Anaconda command prompt.<\/li>\r\n<\/ul>\r\n<p><img decoding=\"async\" class=\"aligncenter wp-image-3908 size-full\" src=\"http:\/\/blog.guvi.in\/wp-content\/uploads\/2021\/04\/Check-Anaconda-and-Miniconda-package-Details-in-Command-Prompt.png\" alt=\"Check Anaconda Miniconda package Details in Command Prompt\" width=\"512\" height=\"255\" srcset=\"https:\/\/www.guvi.in\/blog\/wp-content\/uploads\/2021\/04\/Check-Anaconda-and-Miniconda-package-Details-in-Command-Prompt.png 512w, https:\/\/www.guvi.in\/blog\/wp-content\/uploads\/2021\/04\/Check-Anaconda-and-Miniconda-package-Details-in-Command-Prompt-300x149.png 300w\" sizes=\"(max-width: 512px) 100vw, 512px\" title=\"\"><\/p>\n\n\n\n\n\n<h2 class=\"wp-block-heading\"><strong>How to Update Anaconda and Miniconda<\/strong><\/h2>\n\n\n\n<p>We can confirm the conda environment is up-to-date by writing commands as&nbsp;<\/p>\n\n\n\n<ul>\r\n<li><strong>conda update conda<\/strong> for miniconda\u00a0<\/li>\r\n<li><strong>conda update anaconda<\/strong> for Anaconda<\/li>\r\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>How to Install Additional Python Libraries in Anaconda\/Miniconda<\/strong><\/h2>\n\n\n\n<p>We can add any machine learning, deep learning, and data science library file in Anaconda\/Miniconda by using two package managers as pip and conda.&nbsp;<\/p>\n\n\n\n<p><strong>Syntax<\/strong><\/p>\n\n\n\n<p><p>To install any additional python libraries by using conda, we use the command as&nbsp;<\/p>\n<ul>\n<li><strong>conda install &lt;library names&gt;<\/strong> (or)&nbsp;<\/li>\n<li><strong>conda install -c anaconda &lt;library file&gt;=&lt;version&gt; in the system\/Anaconda command prompt<\/strong><\/li>\n<\/ul><\/p>\n\n\n\n<p><p><strong>Example: <\/strong>conda install numpy scipy pandas keras tensorflow scikit-learn&nbsp;<\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-3907 \" src=\"http:\/\/blog.guvi.in\/wp-content\/uploads\/2021\/04\/conda-install-numpy-scipy-pandas-keras-tensorflow-scikit.png\" alt=\"conda install numpy scipy pandas keras tensorflow scikit\" width=\"516\" height=\"276\" srcset=\"https:\/\/www.guvi.in\/blog\/wp-content\/uploads\/2021\/04\/conda-install-numpy-scipy-pandas-keras-tensorflow-scikit.png 481w, https:\/\/www.guvi.in\/blog\/wp-content\/uploads\/2021\/04\/conda-install-numpy-scipy-pandas-keras-tensorflow-scikit-300x160.png 300w\" sizes=\"(max-width: 516px) 100vw, 516px\" title=\"\"><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-3906 size-full\" src=\"http:\/\/blog.guvi.in\/wp-content\/uploads\/2021\/04\/conda-install-numpy-scipy-pandas-keras-tensorflow-scikit-Command-Prompt.png\" alt=\"conda install numpy scipy pandas keras tensorflow scikit Command Prompt\" width=\"512\" height=\"174\" srcset=\"https:\/\/www.guvi.in\/blog\/wp-content\/uploads\/2021\/04\/conda-install-numpy-scipy-pandas-keras-tensorflow-scikit-Command-Prompt.png 512w, https:\/\/www.guvi.in\/blog\/wp-content\/uploads\/2021\/04\/conda-install-numpy-scipy-pandas-keras-tensorflow-scikit-Command-Prompt-300x102.png 300w\" sizes=\"(max-width: 512px) 100vw, 512px\" title=\"\"><\/p><\/p>\n\n\n\n<p><\/p>\n\n\n\n\n\n\n\n<h2 class=\"wp-block-heading\"><strong>How to Remove Libraries in Anaconda\/Miniconda<\/strong><\/h2>\n\n\n\n<p><p><strong>Syntax<\/strong><\/p>\n<p>To remove any python libraries, we use commands such as <strong>conda remove &lt;library name<\/strong>&gt; in the system\/Anaconda command prompt.<\/p>\n<p><strong>Example<\/strong>:<\/p>\n<p>conda remove numpy<\/p>\n<h2><strong>How to Search Libraries in Anaconda\/Miniconda&nbsp;<\/strong><\/h2>\n<p>To search any python libraries, we use the command as conda search *library name* in the system\/Anaconda command prompt.<\/p>\n<p><strong>Example<\/strong>: conda search *numpy*<\/p>\n<p>When some packages aren\u2019t available with conda, we can use pip to install them by writing the command as \u2018pip install &lt;library name&gt; in Anaconda Prompt.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-3905 size-full\" src=\"http:\/\/blog.guvi.in\/wp-content\/uploads\/2021\/04\/Search-Libraries-in-Anaconda-and-Miniconda-in-Command-Prompt.png\" alt=\"Search Libraries in Anaconda Miniconda in Command Prompt\" width=\"512\" height=\"86\" srcset=\"https:\/\/www.guvi.in\/blog\/wp-content\/uploads\/2021\/04\/Search-Libraries-in-Anaconda-and-Miniconda-in-Command-Prompt.png 512w, https:\/\/www.guvi.in\/blog\/wp-content\/uploads\/2021\/04\/Search-Libraries-in-Anaconda-and-Miniconda-in-Command-Prompt-300x50.png 300w\" sizes=\"(max-width: 512px) 100vw, 512px\" title=\"\"><\/p><\/p>\n\n\n\n\n\n<h2 class=\"wp-block-heading\"><strong>How to Update Libraries in Anaconda Prompt<\/strong><\/h2>\r\n<p>We can easily update any library file as per our requirements. This can be achieved by writing the below commands in the system\/Anaconda prompt.<\/p>\r\n<p><strong>Syntax:<\/strong><\/p>\r\n<p>You can use either of the following<\/p>\r\n<ul>\r\n<li>conda update &lt;library name&gt;\u00a0<\/li>\r\n<li>conda update &lt;library name&gt;=&lt;version&gt;<\/li>\r\n<\/ul>\r\n<p><strong>Example:\u00a0<\/strong><\/p>\r\n<ul>\r\n<li>conda update scikit-learn<\/li>\r\n<li>conda update scikit-learn=0.18.1<\/li>\r\n<\/ul>\r\n<h2><strong>How to Install Jupyter Notebook in Anaconda Prompt<\/strong><\/h2>\r\n<p>To write a python script, we need a jupyter notebook or any other python text editor. Then launch Jupyter Notebook by installing it. To install it use the command as conda install jupyter notebook in system\/Anaconda prompt.<\/p>\r\n<p><img decoding=\"async\" class=\"aligncenter wp-image-3904 size-full\" src=\"http:\/\/blog.guvi.in\/wp-content\/uploads\/2021\/04\/Anaconda-Prompt-Conda-install-jupyter-notebook.png\" alt=\"Anaconda Prompt\u00a0 jupyter notebook\" width=\"512\" height=\"83\" srcset=\"https:\/\/www.guvi.in\/blog\/wp-content\/uploads\/2021\/04\/Anaconda-Prompt-Conda-install-jupyter-notebook.png 512w, https:\/\/www.guvi.in\/blog\/wp-content\/uploads\/2021\/04\/Anaconda-Prompt-Conda-install-jupyter-notebook-300x49.png 300w\" sizes=\"(max-width: 512px) 100vw, 512px\" title=\"\"><\/p>\r\n<p>Now, to run Jupyter Notebook Server, open the system\/Anaconda prompt again. And write command as <strong>jupyter notebook<\/strong><\/p>\r\n<p><img decoding=\"async\" class=\" wp-image-3903 aligncenter\" src=\"http:\/\/blog.guvi.in\/wp-content\/uploads\/2021\/04\/Anaconda-Prompt-Conda-install-jupyter-notebook-1-300x73.png\" alt=\"Anaconda Prompt - Conda install jupyter notebook\" width=\"485\" height=\"118\" srcset=\"https:\/\/www.guvi.in\/blog\/wp-content\/uploads\/2021\/04\/Anaconda-Prompt-Conda-install-jupyter-notebook-1-300x73.png 300w, https:\/\/www.guvi.in\/blog\/wp-content\/uploads\/2021\/04\/Anaconda-Prompt-Conda-install-jupyter-notebook-1.png 340w\" sizes=\"(max-width: 485px) 100vw, 485px\" title=\"\"><\/p>\r\n<p><strong>(OR)<\/strong><\/p>\r\n<p>Search jupyter Notebook at the search bar. Then click on the Jupyter Notebook shell (See below image with a blue arrow).<\/p>\r\n<p><img decoding=\"async\" class=\" wp-image-3902 aligncenter\" src=\"http:\/\/blog.guvi.in\/wp-content\/uploads\/2021\/04\/search-jupyter-Notebook-at-search-bar.png\" alt=\"search jupyter Notebook at search bar\" width=\"489\" height=\"447\" title=\"\"><\/p>\r\n<p><img decoding=\"async\" class=\"aligncenter wp-image-3901 size-full\" src=\"http:\/\/blog.guvi.in\/wp-content\/uploads\/2021\/04\/jupyter-Notebook-in-command-prompt.png\" alt=\"jupyter Notebook in command prompt\" width=\"512\" height=\"233\" srcset=\"https:\/\/www.guvi.in\/blog\/wp-content\/uploads\/2021\/04\/jupyter-Notebook-in-command-prompt.png 512w, https:\/\/www.guvi.in\/blog\/wp-content\/uploads\/2021\/04\/jupyter-Notebook-in-command-prompt-300x137.png 300w\" sizes=\"(max-width: 512px) 100vw, 512px\" title=\"\"><\/p>\r\n<p>After running the server, the <strong>jupyter notebook<\/strong> will open in your default browser.<\/p>\r\n<p><img decoding=\"async\" class=\"aligncenter wp-image-3900 size-full\" src=\"http:\/\/blog.guvi.in\/wp-content\/uploads\/2021\/04\/jupyter-notebook-in-browser.png\" alt=\"jupyter notebook in browser\" width=\"376\" height=\"285\" srcset=\"https:\/\/www.guvi.in\/blog\/wp-content\/uploads\/2021\/04\/jupyter-notebook-in-browser.png 376w, https:\/\/www.guvi.in\/blog\/wp-content\/uploads\/2021\/04\/jupyter-notebook-in-browser-300x227.png 300w\" sizes=\"(max-width: 376px) 100vw, 376px\" title=\"\"><\/p>\r\n<p>You can write your first python program by selecting python 3 at the <strong>New<\/strong> dropdown of the jupyter notebook.<img decoding=\"async\" class=\"size-full wp-image-3899 aligncenter\" src=\"http:\/\/blog.guvi.in\/wp-content\/uploads\/2021\/04\/New-droupdown-menu-in-jupyter-notebook.png\" alt=\"New droupdown menu in jupyter notebook\" width=\"265\" height=\"272\" title=\"\"><\/p>\r\n<p><img decoding=\"async\" class=\"aligncenter wp-image-3898 size-full\" src=\"http:\/\/blog.guvi.in\/wp-content\/uploads\/2021\/04\/Welcome-to-Python-World-in-Jupyter-notebook.png\" alt=\"Welcome to Python World in Jupyter notebook\" width=\"512\" height=\"258\" srcset=\"https:\/\/www.guvi.in\/blog\/wp-content\/uploads\/2021\/04\/Welcome-to-Python-World-in-Jupyter-notebook.png 512w, https:\/\/www.guvi.in\/blog\/wp-content\/uploads\/2021\/04\/Welcome-to-Python-World-in-Jupyter-notebook-300x151.png 300w\" sizes=\"(max-width: 512px) 100vw, 512px\" title=\"\"><\/p>\r\n<h2><strong>Conclusion<\/strong><\/h2>\r\n<p>Machine learning is often used in search engines. They are used in email filtering to weed out junk and sites to make personalized reviews. Also, in financial tools to spot suspicious purchases. Machine Learning is also present in many applications on various devices, such as speech recognition.<\/p>\r\n<p>Here, your setup is complete. Now you can enjoy the prospects of Machine learning.<\/p>\n\n\n\n<p><strong><em>Kickstart your Machine Learning journey by enrolling in\u00a0HCL GUVI\u2019s <a href=\"https:\/\/www.guvi.in\/zen-class\/artificial-intelligence-and-machine-learning-course\/\" data-type=\"link\" data-id=\"https:\/\/www.guvi.in\/zen-class\/machine-learning-course\/?utm_source=blog&amp;utm_medium=organic&amp;utm_campaign=python-environment-for-machine-learning\" target=\"_blank\" rel=\"noreferrer noopener\">Artificial Intelligence &amp; Machine Learning Course<\/a>\u00a0where you will master technologies like matplotlib, pandas, SQL, NLP, and deep learning and build interesting real-life machine learning projects.<\/em><\/strong><\/p>\n\n\n\n<p><strong><em>To enhance your understanding of Python, you might consider signing up for\u00a0HCL GUVI\u2019s <a href=\"https:\/\/www.guvi.in\/courses\/programming\/python\/?utm_source=blog&amp;utm_medium=hyperlink&amp;utm_campaign=python-environment-for-machine-learning\" target=\"_blank\" rel=\"noreferrer noopener\">Python <\/a><a href=\"https:\/\/www.guvi.in\/courses\/programming\/python\/?utm_source=blog&amp;utm_medium=hyperlink&amp;utm_campaign=article_title\" target=\"_blank\" rel=\"noreferrer noopener\">course<\/a>, which is designed to strengthen your grasp of the fundamentals of this popular programming language.<\/em><\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Are you struggling to set up a Python environment for Machine Learning? By the way, Python is an exciting programming language.&nbsp;But installing it can be a bit tricky for beginners sometimes.&nbsp; So here is the guide to you along the way. The Tools you need to run Python Code Before installation of python and setup [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":4275,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[933],"tags":[],"views":"10133","authorinfo":{"name":"GUVI Geek","url":"https:\/\/www.guvi.in\/blog\/author\/admin\/"},"thumbnailURL":"https:\/\/www.guvi.in\/blog\/wp-content\/uploads\/2021\/05\/Anaconda-and-Miniconda-300x169.png","jetpack_featured_media_url":"https:\/\/www.guvi.in\/blog\/wp-content\/uploads\/2021\/05\/Anaconda-and-Miniconda.png","_links":{"self":[{"href":"https:\/\/www.guvi.in\/blog\/wp-json\/wp\/v2\/posts\/3889"}],"collection":[{"href":"https:\/\/www.guvi.in\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.guvi.in\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.guvi.in\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.guvi.in\/blog\/wp-json\/wp\/v2\/comments?post=3889"}],"version-history":[{"count":42,"href":"https:\/\/www.guvi.in\/blog\/wp-json\/wp\/v2\/posts\/3889\/revisions"}],"predecessor-version":[{"id":91367,"href":"https:\/\/www.guvi.in\/blog\/wp-json\/wp\/v2\/posts\/3889\/revisions\/91367"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.guvi.in\/blog\/wp-json\/wp\/v2\/media\/4275"}],"wp:attachment":[{"href":"https:\/\/www.guvi.in\/blog\/wp-json\/wp\/v2\/media?parent=3889"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.guvi.in\/blog\/wp-json\/wp\/v2\/categories?post=3889"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.guvi.in\/blog\/wp-json\/wp\/v2\/tags?post=3889"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}