{"id":19848,"date":"2023-01-12T12:58:53","date_gmt":"2023-01-12T12:58:53","guid":{"rendered":"https:\/\/machinelearningplus.com\/?p=19848"},"modified":"2023-02-26T11:31:13","modified_gmt":"2023-02-26T11:31:13","slug":"setup-python","status":"publish","type":"post","link":"https:\/\/machinelearningplus.com\/machine-learning\/setup-python\/","title":{"rendered":"Setup Python environment for ML"},"content":{"rendered":"<p><strong>Python is the most popular programming language used for AI and machine learning. Let&#8217;s see how to setup python environment for ML using anaconda.<\/strong><\/p>\n<h2><strong>How to install Python?<\/strong><\/h2>\n<p>Simply visit Python.org, go to downloads section, download latest version that shows there and install it like you do for any other software.<\/p>\n<p><a href=\"https:\/\/machinelearningplus.com\/wp-content\/uploads\/2023\/01\/python_download.jpg\"><img fetchpriority=\"high\" decoding=\"async\" src=\"https:\/\/machinelearningplus.com\/wp-content\/uploads\/2023\/01\/python_download-1024x580.jpg\" alt=\"\" width=\"1024\" height=\"580\" class=\"aligncenter size-large wp-image-20493\" srcset=\"https:\/\/machinelearningplus.com\/wp-content\/uploads\/2023\/01\/python_download-1024x580.jpg 1024w, https:\/\/machinelearningplus.com\/wp-content\/uploads\/2023\/01\/python_download-300x170.jpg 300w, https:\/\/machinelearningplus.com\/wp-content\/uploads\/2023\/01\/python_download-768x435.jpg 768w, https:\/\/machinelearningplus.com\/wp-content\/uploads\/2023\/01\/python_download.jpg 1092w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/p>\n<p>To do machine learning in Python you will need to install additional packages that Python Software Foundation and the community develops and maintains. In this case, we will need packages such as <strong>Pandas and scikit-learn<\/strong>.<\/p>\n<p>But here is the thing.<\/p>\n<p>Developers generally <strong>don&#8217;t<\/strong> use \/ install Python this way.<\/p>\n<p>Because, packages keep getting updated and when working on multiple projects, various projects can use different versions of packages. There are chances that you code might break if you update \/ use different versions of packages from what you started.<\/p>\n<p>So, it&#8217;s a good practice to use a package manager like Anaconda.<\/p>\n<p>So how does it work?<\/p>\n<h2>Conda environment<\/h2>\n<p>Upon installing conda, we initialize a fresh environment with a specific version of Python and required packages.<\/p>\n<p>You can have multiple environments defined one for each project you may be working on.<\/p>\n<p>So, Whenever you want to work in that project, you activate that specific project&#8217;s environment and start working.<\/p>\n<p>Once you activate and enter a particular environment, the specific version of Python and packages will be used and any package you install will be installed in that specific environment only and will not affect other projects.<\/p>\n<p>Hope that is clear?<\/p>\n<p>Let&#8217;s see the steps to install and setup Anaconda.<\/p>\n<h2>Step 1: Install Anaconda<\/h2>\n<p>Visit <a href=\"https:\/\/www.anaconda.com\/\">Anaconda website<\/a>, locate and download the free version of Anaconda for your operating system. Then install it like you do for any other software.<\/p>\n<p><a href=\"https:\/\/machinelearningplus.com\/wp-content\/uploads\/2023\/01\/anaconda_website.jpg\"><img decoding=\"async\" src=\"https:\/\/machinelearningplus.com\/wp-content\/uploads\/2023\/01\/anaconda_website-1024x475.jpg\" alt=\"\" width=\"1024\" height=\"475\" class=\"aligncenter size-large wp-image-20494\" srcset=\"https:\/\/machinelearningplus.com\/wp-content\/uploads\/2023\/01\/anaconda_website-1024x475.jpg 1024w, https:\/\/machinelearningplus.com\/wp-content\/uploads\/2023\/01\/anaconda_website-300x139.jpg 300w, https:\/\/machinelearningplus.com\/wp-content\/uploads\/2023\/01\/anaconda_website-768x356.jpg 768w, https:\/\/machinelearningplus.com\/wp-content\/uploads\/2023\/01\/anaconda_website.jpg 1201w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/p>\n<p>Once you do this, if you are in windows, you will be able to open &#8216;Anaconda Prompt&#8217; instead of the usual &#8216;Command propmt&#8217; .<\/p>\n<p>If you are on Linux or Mac, you can use the terminal as always.<\/p>\n<h2>Step 2: Install Python<\/h2>\n<p>Open the terminal or &#8216;Anaconda prompt&#8217; on windows.<\/p>\n<p><a href=\"https:\/\/machinelearningplus.com\/wp-content\/uploads\/2023\/01\/anaconda_prompt.jpg\"><img decoding=\"async\" src=\"https:\/\/machinelearningplus.com\/wp-content\/uploads\/2023\/01\/anaconda_prompt.jpg\" alt=\"\" width=\"544\" height=\"294\" class=\"aligncenter size-full wp-image-20495\" srcset=\"https:\/\/machinelearningplus.com\/wp-content\/uploads\/2023\/01\/anaconda_prompt.jpg 544w, https:\/\/machinelearningplus.com\/wp-content\/uploads\/2023\/01\/anaconda_prompt-300x162.jpg 300w\" sizes=\"(max-width: 544px) 100vw, 544px\" \/><\/a><\/p>\n<p><strong>Also read:<\/strong> Here is a more detailed guide on <a href=\"https:\/\/machinelearningplus.com\/deployment\/conda-create-environment-and-everything-you-need-to-know-to-manage-conda-virtual-environment\/\">how to work with conda to create and manage environments<\/a><\/p>\n<p>Create a fresh conda environment named <code>mlenv<\/code> (or any name you wish) and install Python 3.7.5.<\/p>\n<p>Feel free to install a more recent version, doesn&#8217;t matter much for this lesson.<\/p>\n<pre><code>conda create --name mlenv python==3.7.5\n<\/code><\/pre>\n<h2>Step 3: Activate the environment<\/h2>\n<pre><code>conda activate mlenv\n<\/code><\/pre>\n<h2>Step 4: Install the packages<\/h2>\n<p>For this project we will need <code>pandas<\/code>, <code>scikit-learn<\/code> and <code>matplotlib<\/code>.<\/p>\n<pre><code>pip install pandas scikit-learn matplotlib seaborn\n<\/code><\/pre>\n<p>You might also want to install ML packages like xgboost, lightGBM etc. So run:<\/p>\n<pre><code>pip install xgboost lightgbm\n<\/code><\/pre>\n<p>Since I have not specified the specific version number, it will install the latest version of the packages.<\/p>\n<h2>Step 5: Install Jupyter lab and start<\/h2>\n<p>Jupyter lab is a popular Web IDE used by most Data Scientists. This is my personal preference because it provides the the notebook feel plus you will be able to navigate the files and directtory, provides the terminal, code completions, help etc.<\/p>\n<p>I use Jupyter lab for this. But it really doesnt matter which IDE you use. Besides Jupyter, people also use PyCharm, VS Code and <a href=\"https:\/\/docs.spyder-ide.org\/current\/workshops\/scientific-computing.html\">Spyder<\/a> for ML workflows.<\/p>\n<p>If you are not familiar with IDEs, just pick Jupyter lab like I show here.<\/p>\n<p>First install it.<\/p>\n<pre><code>&gt; pip install jupyterlab\n<\/code><\/pre>\n<p>See this <a href=\"https:\/\/jupyterlab.readthedocs.io\/en\/stable\/getting_started\/installation.html\">installation guide<\/a> if you want to know more.<\/p>\n<p>Then, <strong>start jupyterlab<\/strong>. But before you do that, if you have a project directory (a dir where you have all the code, datasets and files related to your project), <code>cd<\/code> to that directory and run the following command from there.<\/p>\n<p>By doing so, your project directory will become the working directory.<\/p>\n<p>Run this command in Terminal or Anaconda prompt.<\/p>\n<pre><code>&gt; jupyter lab\n<\/code><\/pre>\n<p>This will open jupyter lab in your default browser. You should see a screen like below.<\/p>\n<p>Click on the file icon on the top left and then &#8216;+&#8217; on top to open the launcher. Then start a new notebook by clicking the Python3 button. This will create a new Jupyter notebook. Rename it as you wish.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/machinelearningplus.com\/wp-content\/uploads\/2023\/01\/jupyterlab_screen_annotated.jpg\" alt=\"jupyterlab screen annotated\" width=\"969\" height=\"531\" class=\"alignnone size-full wp-image-19850\" srcset=\"https:\/\/machinelearningplus.com\/wp-content\/uploads\/2023\/01\/jupyterlab_screen_annotated.jpg 969w, https:\/\/machinelearningplus.com\/wp-content\/uploads\/2023\/01\/jupyterlab_screen_annotated-300x164.jpg 300w, https:\/\/machinelearningplus.com\/wp-content\/uploads\/2023\/01\/jupyterlab_screen_annotated-768x421.jpg 768w\" sizes=\"(max-width: 969px) 100vw, 969px\" \/><\/p>\n<h2>Step 6: Check versions<\/h2>\n<pre><code class=\"language-python\"># Check versions\nimport sys, matplotlib, pandas, sklearn, seaborn\n\nprint(f'Python: {sys.version}')\nprint(f'matplotlib: {matplotlib.__version__}')\nprint(f'pandas: {pandas.__version__}')\nprint(f'sklearn: {sklearn.__version__}')\nprint(f'seaborn: {seaborn.__version__}')\n<\/code><\/pre>\n<pre><code>Python: 3.7.5 (default, Oct 31 2019, 15:18:51) [MSC v.1916 64 bit (AMD64)]\nmatplotlib: 3.5.3\npandas: 1.3.5\nsklearn: 1.0.2\nseaborn: 0.12.1\n<\/code><\/pre>\n<p><strong>Deactivate the environment<\/strong><\/p>\n<p>When you are done with your work or want to work on a different project, you will want to change to a different environment. To do that you need to deactivate and come out of the current conda environment.<\/p>\n<pre><code>&gt; conda deactivate\n<\/code><\/pre>\n<p><strong>[Next] Lesson 3:<\/strong> <a href=\"https:\/\/machinelearningplus.com\/machine-learning\/ml-modeling\/\">ML Modeling &#8211; Problem Statement and Data Description<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Python is the most popular programming language used for AI and machine learning. Let&#8217;s see how to setup python environment for ML using anaconda. How to install Python? Simply visit Python.org, go to downloads section, download latest version that shows there and install it like you do for any other software. To do machine learning [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":19855,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"site-sidebar-layout":"default","site-content-layout":"default","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"default","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[31],"tags":[103,22],"class_list":["post-19848","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-machine-learning","tag-machine-learning","tag-python"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.0 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Setup Python environment for ML - machinelearningplus<\/title>\n<meta name=\"description\" content=\"Python is the most popular programming language used for AI and machine learning. Let\u2019s see how to setup python environment for ML using anaconda.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/localhost:8080\/machine-learning\/setup-python\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Setup Python environment for ML - machinelearningplus\" \/>\n<meta property=\"og:description\" content=\"Python is the most popular programming language used for AI and machine learning. Let\u2019s see how to setup python environment for ML using anaconda.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/localhost:8080\/machine-learning\/setup-python\/\" \/>\n<meta property=\"og:site_name\" content=\"machinelearningplus\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/rtipaday\/\" \/>\n<meta property=\"article:published_time\" content=\"2023-01-12T12:58:53+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-02-26T11:31:13+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/localhost:8080\/wp-content\/uploads\/2023\/01\/Setup-Python-environment-1.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1080\" \/>\n\t<meta property=\"og:image:height\" content=\"1080\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Selva Prabhakaran\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@https:\/\/twitter.com\/R_Programming\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Selva Prabhakaran\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"TechArticle\",\"@id\":\"https:\\\/\\\/localhost:8080\\\/machine-learning\\\/setup-python\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/localhost:8080\\\/machine-learning\\\/setup-python\\\/\"},\"author\":{\"name\":\"Selva Prabhakaran\",\"@id\":\"https:\\\/\\\/machinelearningplus.com\\\/#\\\/schema\\\/person\\\/510885c0515804366fa644c38258391e\"},\"headline\":\"Setup Python environment for ML\",\"datePublished\":\"2023-01-12T12:58:53+00:00\",\"dateModified\":\"2023-02-26T11:31:13+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/localhost:8080\\\/machine-learning\\\/setup-python\\\/\"},\"wordCount\":711,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/machinelearningplus.com\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/localhost:8080\\\/machine-learning\\\/setup-python\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/machinelearningplus.com\\\/wp-content\\\/uploads\\\/2023\\\/01\\\/Setup-Python-environment-1.png\",\"keywords\":[\"Machine Learning\",\"Python\"],\"articleSection\":[\"Machine Learning\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/localhost:8080\\\/machine-learning\\\/setup-python\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/localhost:8080\\\/machine-learning\\\/setup-python\\\/\",\"url\":\"https:\\\/\\\/localhost:8080\\\/machine-learning\\\/setup-python\\\/\",\"name\":\"Setup Python environment for ML - machinelearningplus\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/machinelearningplus.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/localhost:8080\\\/machine-learning\\\/setup-python\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/localhost:8080\\\/machine-learning\\\/setup-python\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/machinelearningplus.com\\\/wp-content\\\/uploads\\\/2023\\\/01\\\/Setup-Python-environment-1.png\",\"datePublished\":\"2023-01-12T12:58:53+00:00\",\"dateModified\":\"2023-02-26T11:31:13+00:00\",\"description\":\"Python is the most popular programming language used for AI and machine learning. Let\u2019s see how to setup python environment for ML using anaconda.\",\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/localhost:8080\\\/machine-learning\\\/setup-python\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/localhost:8080\\\/machine-learning\\\/setup-python\\\/#primaryimage\",\"url\":\"https:\\\/\\\/machinelearningplus.com\\\/wp-content\\\/uploads\\\/2023\\\/01\\\/Setup-Python-environment-1.png\",\"contentUrl\":\"https:\\\/\\\/machinelearningplus.com\\\/wp-content\\\/uploads\\\/2023\\\/01\\\/Setup-Python-environment-1.png\",\"width\":1080,\"height\":1080},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/machinelearningplus.com\\\/#website\",\"url\":\"https:\\\/\\\/machinelearningplus.com\\\/\",\"name\":\"machinelearningplus\",\"description\":\"Learn Data Science (AI \\\/ ML) Online\",\"publisher\":{\"@id\":\"https:\\\/\\\/machinelearningplus.com\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/machinelearningplus.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/machinelearningplus.com\\\/#organization\",\"name\":\"machinelearningplus\",\"url\":\"https:\\\/\\\/machinelearningplus.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/machinelearningplus.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/machinelearningplus.com\\\/wp-content\\\/uploads\\\/2022\\\/05\\\/MachineLearningplus-logo.svg\",\"contentUrl\":\"https:\\\/\\\/machinelearningplus.com\\\/wp-content\\\/uploads\\\/2022\\\/05\\\/MachineLearningplus-logo.svg\",\"width\":348,\"height\":36,\"caption\":\"machinelearningplus\"},\"image\":{\"@id\":\"https:\\\/\\\/machinelearningplus.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/machinelearningplus.com\\\/#\\\/schema\\\/person\\\/510885c0515804366fa644c38258391e\",\"name\":\"Selva Prabhakaran\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/machinelearningplus.com\\\/wp-content\\\/litespeed\\\/avatar\\\/a994280177da541405c016f593e86ea7.jpg?ver=1783622267\",\"url\":\"https:\\\/\\\/machinelearningplus.com\\\/wp-content\\\/litespeed\\\/avatar\\\/a994280177da541405c016f593e86ea7.jpg?ver=1783622267\",\"contentUrl\":\"https:\\\/\\\/machinelearningplus.com\\\/wp-content\\\/litespeed\\\/avatar\\\/a994280177da541405c016f593e86ea7.jpg?ver=1783622267\",\"caption\":\"Selva Prabhakaran\"},\"description\":\"Selva is an experienced Data Scientist and leader, specializing in executing AI projects for large companies. Selva started machinelearningplus to make Data Science \\\/ ML \\\/ AI accessible to everyone. The website enjoys 4 Million+ readership. His courses, lessons, and videos are loved by hundreds of thousands of students and practitioners.\",\"sameAs\":[\"https:\\\/\\\/localhost:8080\\\/\",\"https:\\\/\\\/www.facebook.com\\\/rtipaday\\\/\",\"https:\\\/\\\/x.com\\\/https:\\\/\\\/twitter.com\\\/R_Programming\"],\"url\":\"https:\\\/\\\/machinelearningplus.com\\\/author\\\/selva86\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Setup Python environment for ML - machinelearningplus","description":"Python is the most popular programming language used for AI and machine learning. Let\u2019s see how to setup python environment for ML using anaconda.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/localhost:8080\/machine-learning\/setup-python\/","og_locale":"en_US","og_type":"article","og_title":"Setup Python environment for ML - machinelearningplus","og_description":"Python is the most popular programming language used for AI and machine learning. Let\u2019s see how to setup python environment for ML using anaconda.","og_url":"https:\/\/localhost:8080\/machine-learning\/setup-python\/","og_site_name":"machinelearningplus","article_author":"https:\/\/www.facebook.com\/rtipaday\/","article_published_time":"2023-01-12T12:58:53+00:00","article_modified_time":"2023-02-26T11:31:13+00:00","og_image":[{"width":1080,"height":1080,"url":"https:\/\/localhost:8080\/wp-content\/uploads\/2023\/01\/Setup-Python-environment-1.png","type":"image\/png"}],"author":"Selva Prabhakaran","twitter_card":"summary_large_image","twitter_creator":"@https:\/\/twitter.com\/R_Programming","twitter_misc":{"Written by":"Selva Prabhakaran","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"TechArticle","@id":"https:\/\/localhost:8080\/machine-learning\/setup-python\/#article","isPartOf":{"@id":"https:\/\/localhost:8080\/machine-learning\/setup-python\/"},"author":{"name":"Selva Prabhakaran","@id":"https:\/\/machinelearningplus.com\/#\/schema\/person\/510885c0515804366fa644c38258391e"},"headline":"Setup Python environment for ML","datePublished":"2023-01-12T12:58:53+00:00","dateModified":"2023-02-26T11:31:13+00:00","mainEntityOfPage":{"@id":"https:\/\/localhost:8080\/machine-learning\/setup-python\/"},"wordCount":711,"commentCount":0,"publisher":{"@id":"https:\/\/machinelearningplus.com\/#organization"},"image":{"@id":"https:\/\/localhost:8080\/machine-learning\/setup-python\/#primaryimage"},"thumbnailUrl":"https:\/\/machinelearningplus.com\/wp-content\/uploads\/2023\/01\/Setup-Python-environment-1.png","keywords":["Machine Learning","Python"],"articleSection":["Machine Learning"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/localhost:8080\/machine-learning\/setup-python\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/localhost:8080\/machine-learning\/setup-python\/","url":"https:\/\/localhost:8080\/machine-learning\/setup-python\/","name":"Setup Python environment for ML - machinelearningplus","isPartOf":{"@id":"https:\/\/machinelearningplus.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/localhost:8080\/machine-learning\/setup-python\/#primaryimage"},"image":{"@id":"https:\/\/localhost:8080\/machine-learning\/setup-python\/#primaryimage"},"thumbnailUrl":"https:\/\/machinelearningplus.com\/wp-content\/uploads\/2023\/01\/Setup-Python-environment-1.png","datePublished":"2023-01-12T12:58:53+00:00","dateModified":"2023-02-26T11:31:13+00:00","description":"Python is the most popular programming language used for AI and machine learning. Let\u2019s see how to setup python environment for ML using anaconda.","inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/localhost:8080\/machine-learning\/setup-python\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/localhost:8080\/machine-learning\/setup-python\/#primaryimage","url":"https:\/\/machinelearningplus.com\/wp-content\/uploads\/2023\/01\/Setup-Python-environment-1.png","contentUrl":"https:\/\/machinelearningplus.com\/wp-content\/uploads\/2023\/01\/Setup-Python-environment-1.png","width":1080,"height":1080},{"@type":"WebSite","@id":"https:\/\/machinelearningplus.com\/#website","url":"https:\/\/machinelearningplus.com\/","name":"machinelearningplus","description":"Learn Data Science (AI \/ ML) Online","publisher":{"@id":"https:\/\/machinelearningplus.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/machinelearningplus.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/machinelearningplus.com\/#organization","name":"machinelearningplus","url":"https:\/\/machinelearningplus.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/machinelearningplus.com\/#\/schema\/logo\/image\/","url":"https:\/\/machinelearningplus.com\/wp-content\/uploads\/2022\/05\/MachineLearningplus-logo.svg","contentUrl":"https:\/\/machinelearningplus.com\/wp-content\/uploads\/2022\/05\/MachineLearningplus-logo.svg","width":348,"height":36,"caption":"machinelearningplus"},"image":{"@id":"https:\/\/machinelearningplus.com\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/machinelearningplus.com\/#\/schema\/person\/510885c0515804366fa644c38258391e","name":"Selva Prabhakaran","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/machinelearningplus.com\/wp-content\/litespeed\/avatar\/a994280177da541405c016f593e86ea7.jpg?ver=1783622267","url":"https:\/\/machinelearningplus.com\/wp-content\/litespeed\/avatar\/a994280177da541405c016f593e86ea7.jpg?ver=1783622267","contentUrl":"https:\/\/machinelearningplus.com\/wp-content\/litespeed\/avatar\/a994280177da541405c016f593e86ea7.jpg?ver=1783622267","caption":"Selva Prabhakaran"},"description":"Selva is an experienced Data Scientist and leader, specializing in executing AI projects for large companies. Selva started machinelearningplus to make Data Science \/ ML \/ AI accessible to everyone. The website enjoys 4 Million+ readership. His courses, lessons, and videos are loved by hundreds of thousands of students and practitioners.","sameAs":["https:\/\/localhost:8080\/","https:\/\/www.facebook.com\/rtipaday\/","https:\/\/x.com\/https:\/\/twitter.com\/R_Programming"],"url":"https:\/\/machinelearningplus.com\/author\/selva86\/"}]}},"_links":{"self":[{"href":"https:\/\/machinelearningplus.com\/wp-json\/wp\/v2\/posts\/19848","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/machinelearningplus.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/machinelearningplus.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/machinelearningplus.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/machinelearningplus.com\/wp-json\/wp\/v2\/comments?post=19848"}],"version-history":[{"count":0,"href":"https:\/\/machinelearningplus.com\/wp-json\/wp\/v2\/posts\/19848\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/machinelearningplus.com\/wp-json\/wp\/v2\/media\/19855"}],"wp:attachment":[{"href":"https:\/\/machinelearningplus.com\/wp-json\/wp\/v2\/media?parent=19848"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/machinelearningplus.com\/wp-json\/wp\/v2\/categories?post=19848"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/machinelearningplus.com\/wp-json\/wp\/v2\/tags?post=19848"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}