{"id":20,"date":"2019-01-08T18:53:39","date_gmt":"2019-01-08T18:53:39","guid":{"rendered":"https:\/\/kindsonthegenius.com\/python\/?p=20"},"modified":"2019-03-31T21:04:46","modified_gmt":"2019-03-31T21:04:46","slug":"02-python-installation-and-setup","status":"publish","type":"post","link":"https:\/\/www.kindsonthegenius.com\/python\/02-python-installation-and-setup\/","title":{"rendered":"Python &#8211; Installation and Setup"},"content":{"rendered":"\r\n<p>Here, we are going to cover how to set up Python Installation in Windows and Mac.<\/p>\r\n\r\n\r\n\r\n<ol class=\"wp-block-list\">\r\n<li><a href=\"#t1\">Introduction<\/a><\/li>\r\n<li><a href=\"#t2\">Setting the PATH Variable<\/a><\/li>\r\n<li><a href=\"#t3\">Some Environment Variables to Know<\/a><\/li>\r\n<li><a href=\"#t4\">Watch the Video<\/a><\/li>\r\n<\/ol>\r\n\r\n\r\n\r\n<h4 class=\"wp-block-heading\" id=\"t1\">1. Introduction<\/h4>\r\n\r\n\r\n\r\n<p>First, the easiest way to set up Python is to install one of the distributions of Python. Therefore, I would recommend Anaconda, which you can download and install free from <a href=\"https:\/\/www.anaconda.com\/download\/\">https:\/\/www.anaconda.com\/download\/<\/a><\/p>\r\n\r\n\r\n\r\n<p>In the download page, you can choose between the three operating systems<\/p>\r\n\r\n\r\n\r\n<ul class=\"wp-block-list\">\r\n<li>Windows<\/li>\r\n<li>Mac<\/li>\r\n<li>Linux<\/li>\r\n<\/ul>\r\n\r\n<p>&nbsp;<\/p>\r\n\r\n<p>The installation is fairly straightforward. After installation, you need to set up the PATH variable.<\/p>\r\n\r\n\r\n<hr \/>\r\n\r\n\r\n<h4 class=\"wp-block-heading\" id=\"t2\">2. Setting PATH Variable<\/h4>\r\n\r\n\r\n\r\n<p>Since Python is an interpreted language, it means that the operating system would require the Python executable files.<\/p>\r\n\r\n\r\n\r\n<p>The path to Python executable is stored in the environment variable which can be set by the user. To add the path to Python executable to the environment variable in Window:<\/p>\r\n\r\n\r\n\r\n<ul class=\"wp-block-list\">\r\n<li>open the properties of My Computer<\/li>\r\n<li>Click on Advanced System Settings<\/li>\r\n<li>Then Environment Variables<\/li>\r\n<li>Select PATH from the list<\/li>\r\n<li>Click on Edit<\/li>\r\n<li>Then add the path to the Python executable to the end of the existing text.<\/li>\r\n<\/ul>\r\n\r\n\r\n<hr \/>\r\n\r\n\r\n<h4 class=\"wp-block-heading\" id=\"t3\">3. Some Environment Variables to Know<\/h4>\r\n\r\n\r\n\r\n<p>These are some environment variables used by Python and you may encounter in Python Quiz<\/p>\r\n\r\n\r\n\r\n<p><strong>PYTHONSTARTUP<\/strong><\/p>\r\n\r\n\r\n\r\n<p>The PYTHONSTARTUP variable contains the path of the initialization file that contains the Python source code. It is processed each time the Python interpreter is started. In the Unix system, it&#8217;s name is .pythonrc.py and it holds the command that load utilities or modify the PYTHONPATH variable<\/p>\r\n\r\n\r\n\r\n<p><strong>PYTHONPATH<\/strong><\/p>\r\n\r\n\r\n\r\n<p>The variable plays a role similar to the PATH variable. It tells the Python interpreter the location of module files that are imported into the program. Additionally, contains the Python source library directory as well as the directories containing the Python source code.<\/p>\r\n\r\n\r\n\r\n<p><strong>PYTHONHOME<\/strong><\/p>\r\n\r\n\r\n\r\n<p>This specifies an alternative module search directory. It is normally embedded into the PYTHONSTARTUP or the PYTHONPATH directories. This in then, makes it possible to switch module libraries easily.<\/p>\r\n\r\n\r\n\r\n<p><strong>PYTHONCASEOK<\/strong><\/p>\r\n\r\n\r\n\r\n<p>Finally, this is a variable used in Windows to tell Python to find the first case-insensitive match in a module import statement. To activate this variable, it can be set to any value<\/p>\r\n\r\n\r\n\r\n<h4 class=\"wp-block-heading\" id=\"t4\">4. Watch the Video<\/h4>\r\n\r\n\r\n\r\n<figure><iframe loading=\"lazy\" src=\"https:\/\/www.youtube.com\/embed\/sP6Kt0wj8Dw\" width=\"560\" height=\"315\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/figure>\r\n","protected":false},"excerpt":{"rendered":"<p>Here, we are going to cover how to set up Python Installation in Windows and Mac. Introduction Setting the PATH Variable Some Environment Variables to &hellip; <\/p>\n","protected":false},"author":395,"featured_media":285,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[5],"tags":[],"class_list":["post-20","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-python-tutorials"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Python - Installation and Setup - Python Tutorials<\/title>\n<meta name=\"description\" content=\"In this lesson, you will learn how to download Python for free and set up Python and Jupyter Notebook on your computer 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:\/\/www.kindsonthegenius.com\/python\/02-python-installation-and-setup\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Python - Installation and Setup - Python Tutorials\" \/>\n<meta property=\"og:description\" content=\"In this lesson, you will learn how to download Python for free and set up Python and Jupyter Notebook on your computer using Anaconda.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.kindsonthegenius.com\/python\/02-python-installation-and-setup\/\" \/>\n<meta property=\"og:site_name\" content=\"Python Tutorials\" \/>\n<meta property=\"article:published_time\" content=\"2019-01-08T18:53:39+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2019-03-31T21:04:46+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.kindsonthegenius.com\/python\/wp-content\/uploads\/sites\/8\/2019\/01\/Installtion-and-Setup-of-Python-IDE.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"887\" \/>\n\t<meta property=\"og:image:height\" content=\"494\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"kindsonthegenius\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"kindsonthegenius\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.kindsonthegenius.com\\\/python\\\/02-python-installation-and-setup\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.kindsonthegenius.com\\\/python\\\/02-python-installation-and-setup\\\/\"},\"author\":{\"name\":\"kindsonthegenius\",\"@id\":\"https:\\\/\\\/www.kindsonthegenius.com\\\/python\\\/#\\\/schema\\\/person\\\/63a68934672db675ff0cd80d066510c2\"},\"headline\":\"Python &#8211; Installation and Setup\",\"datePublished\":\"2019-01-08T18:53:39+00:00\",\"dateModified\":\"2019-03-31T21:04:46+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.kindsonthegenius.com\\\/python\\\/02-python-installation-and-setup\\\/\"},\"wordCount\":371,\"commentCount\":1,\"image\":{\"@id\":\"https:\\\/\\\/www.kindsonthegenius.com\\\/python\\\/02-python-installation-and-setup\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.kindsonthegenius.com\\\/python\\\/wp-content\\\/uploads\\\/sites\\\/8\\\/2019\\\/01\\\/Installtion-and-Setup-of-Python-IDE.jpg\",\"articleSection\":[\"Python Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.kindsonthegenius.com\\\/python\\\/02-python-installation-and-setup\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.kindsonthegenius.com\\\/python\\\/02-python-installation-and-setup\\\/\",\"url\":\"https:\\\/\\\/www.kindsonthegenius.com\\\/python\\\/02-python-installation-and-setup\\\/\",\"name\":\"Python - Installation and Setup - Python Tutorials\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.kindsonthegenius.com\\\/python\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.kindsonthegenius.com\\\/python\\\/02-python-installation-and-setup\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.kindsonthegenius.com\\\/python\\\/02-python-installation-and-setup\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.kindsonthegenius.com\\\/python\\\/wp-content\\\/uploads\\\/sites\\\/8\\\/2019\\\/01\\\/Installtion-and-Setup-of-Python-IDE.jpg\",\"datePublished\":\"2019-01-08T18:53:39+00:00\",\"dateModified\":\"2019-03-31T21:04:46+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.kindsonthegenius.com\\\/python\\\/#\\\/schema\\\/person\\\/63a68934672db675ff0cd80d066510c2\"},\"description\":\"In this lesson, you will learn how to download Python for free and set up Python and Jupyter Notebook on your computer using Anaconda.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.kindsonthegenius.com\\\/python\\\/02-python-installation-and-setup\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.kindsonthegenius.com\\\/python\\\/02-python-installation-and-setup\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.kindsonthegenius.com\\\/python\\\/02-python-installation-and-setup\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.kindsonthegenius.com\\\/python\\\/wp-content\\\/uploads\\\/sites\\\/8\\\/2019\\\/01\\\/Installtion-and-Setup-of-Python-IDE.jpg\",\"contentUrl\":\"https:\\\/\\\/www.kindsonthegenius.com\\\/python\\\/wp-content\\\/uploads\\\/sites\\\/8\\\/2019\\\/01\\\/Installtion-and-Setup-of-Python-IDE.jpg\",\"width\":887,\"height\":494,\"caption\":\"Installtion and Setup of Python IDE\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.kindsonthegenius.com\\\/python\\\/02-python-installation-and-setup\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.kindsonthegenius.com\\\/python\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Python &#8211; Installation and Setup\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.kindsonthegenius.com\\\/python\\\/#website\",\"url\":\"https:\\\/\\\/www.kindsonthegenius.com\\\/python\\\/\",\"name\":\"Python Tutorials\",\"description\":\"Python Tutorial for Programming and Data Science\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.kindsonthegenius.com\\\/python\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.kindsonthegenius.com\\\/python\\\/#\\\/schema\\\/person\\\/63a68934672db675ff0cd80d066510c2\",\"name\":\"kindsonthegenius\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/3079a7f663b02e801d03cd075852a037af36bd179b5fbcd0603bae3dd7833a9b?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/3079a7f663b02e801d03cd075852a037af36bd179b5fbcd0603bae3dd7833a9b?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/3079a7f663b02e801d03cd075852a037af36bd179b5fbcd0603bae3dd7833a9b?s=96&d=mm&r=g\",\"caption\":\"kindsonthegenius\"},\"url\":\"https:\\\/\\\/www.kindsonthegenius.com\\\/python\\\/author\\\/kindsonthegenius-2\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Python - Installation and Setup - Python Tutorials","description":"In this lesson, you will learn how to download Python for free and set up Python and Jupyter Notebook on your computer 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:\/\/www.kindsonthegenius.com\/python\/02-python-installation-and-setup\/","og_locale":"en_US","og_type":"article","og_title":"Python - Installation and Setup - Python Tutorials","og_description":"In this lesson, you will learn how to download Python for free and set up Python and Jupyter Notebook on your computer using Anaconda.","og_url":"https:\/\/www.kindsonthegenius.com\/python\/02-python-installation-and-setup\/","og_site_name":"Python Tutorials","article_published_time":"2019-01-08T18:53:39+00:00","article_modified_time":"2019-03-31T21:04:46+00:00","og_image":[{"width":887,"height":494,"url":"https:\/\/www.kindsonthegenius.com\/python\/wp-content\/uploads\/sites\/8\/2019\/01\/Installtion-and-Setup-of-Python-IDE.jpg","type":"image\/jpeg"}],"author":"kindsonthegenius","twitter_card":"summary_large_image","twitter_misc":{"Written by":"kindsonthegenius","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.kindsonthegenius.com\/python\/02-python-installation-and-setup\/#article","isPartOf":{"@id":"https:\/\/www.kindsonthegenius.com\/python\/02-python-installation-and-setup\/"},"author":{"name":"kindsonthegenius","@id":"https:\/\/www.kindsonthegenius.com\/python\/#\/schema\/person\/63a68934672db675ff0cd80d066510c2"},"headline":"Python &#8211; Installation and Setup","datePublished":"2019-01-08T18:53:39+00:00","dateModified":"2019-03-31T21:04:46+00:00","mainEntityOfPage":{"@id":"https:\/\/www.kindsonthegenius.com\/python\/02-python-installation-and-setup\/"},"wordCount":371,"commentCount":1,"image":{"@id":"https:\/\/www.kindsonthegenius.com\/python\/02-python-installation-and-setup\/#primaryimage"},"thumbnailUrl":"https:\/\/www.kindsonthegenius.com\/python\/wp-content\/uploads\/sites\/8\/2019\/01\/Installtion-and-Setup-of-Python-IDE.jpg","articleSection":["Python Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.kindsonthegenius.com\/python\/02-python-installation-and-setup\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.kindsonthegenius.com\/python\/02-python-installation-and-setup\/","url":"https:\/\/www.kindsonthegenius.com\/python\/02-python-installation-and-setup\/","name":"Python - Installation and Setup - Python Tutorials","isPartOf":{"@id":"https:\/\/www.kindsonthegenius.com\/python\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.kindsonthegenius.com\/python\/02-python-installation-and-setup\/#primaryimage"},"image":{"@id":"https:\/\/www.kindsonthegenius.com\/python\/02-python-installation-and-setup\/#primaryimage"},"thumbnailUrl":"https:\/\/www.kindsonthegenius.com\/python\/wp-content\/uploads\/sites\/8\/2019\/01\/Installtion-and-Setup-of-Python-IDE.jpg","datePublished":"2019-01-08T18:53:39+00:00","dateModified":"2019-03-31T21:04:46+00:00","author":{"@id":"https:\/\/www.kindsonthegenius.com\/python\/#\/schema\/person\/63a68934672db675ff0cd80d066510c2"},"description":"In this lesson, you will learn how to download Python for free and set up Python and Jupyter Notebook on your computer using Anaconda.","breadcrumb":{"@id":"https:\/\/www.kindsonthegenius.com\/python\/02-python-installation-and-setup\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.kindsonthegenius.com\/python\/02-python-installation-and-setup\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.kindsonthegenius.com\/python\/02-python-installation-and-setup\/#primaryimage","url":"https:\/\/www.kindsonthegenius.com\/python\/wp-content\/uploads\/sites\/8\/2019\/01\/Installtion-and-Setup-of-Python-IDE.jpg","contentUrl":"https:\/\/www.kindsonthegenius.com\/python\/wp-content\/uploads\/sites\/8\/2019\/01\/Installtion-and-Setup-of-Python-IDE.jpg","width":887,"height":494,"caption":"Installtion and Setup of Python IDE"},{"@type":"BreadcrumbList","@id":"https:\/\/www.kindsonthegenius.com\/python\/02-python-installation-and-setup\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.kindsonthegenius.com\/python\/"},{"@type":"ListItem","position":2,"name":"Python &#8211; Installation and Setup"}]},{"@type":"WebSite","@id":"https:\/\/www.kindsonthegenius.com\/python\/#website","url":"https:\/\/www.kindsonthegenius.com\/python\/","name":"Python Tutorials","description":"Python Tutorial for Programming and Data Science","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.kindsonthegenius.com\/python\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.kindsonthegenius.com\/python\/#\/schema\/person\/63a68934672db675ff0cd80d066510c2","name":"kindsonthegenius","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/3079a7f663b02e801d03cd075852a037af36bd179b5fbcd0603bae3dd7833a9b?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/3079a7f663b02e801d03cd075852a037af36bd179b5fbcd0603bae3dd7833a9b?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/3079a7f663b02e801d03cd075852a037af36bd179b5fbcd0603bae3dd7833a9b?s=96&d=mm&r=g","caption":"kindsonthegenius"},"url":"https:\/\/www.kindsonthegenius.com\/python\/author\/kindsonthegenius-2\/"}]}},"_links":{"self":[{"href":"https:\/\/www.kindsonthegenius.com\/python\/wp-json\/wp\/v2\/posts\/20","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.kindsonthegenius.com\/python\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.kindsonthegenius.com\/python\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.kindsonthegenius.com\/python\/wp-json\/wp\/v2\/users\/395"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kindsonthegenius.com\/python\/wp-json\/wp\/v2\/comments?post=20"}],"version-history":[{"count":12,"href":"https:\/\/www.kindsonthegenius.com\/python\/wp-json\/wp\/v2\/posts\/20\/revisions"}],"predecessor-version":[{"id":264,"href":"https:\/\/www.kindsonthegenius.com\/python\/wp-json\/wp\/v2\/posts\/20\/revisions\/264"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.kindsonthegenius.com\/python\/wp-json\/wp\/v2\/media\/285"}],"wp:attachment":[{"href":"https:\/\/www.kindsonthegenius.com\/python\/wp-json\/wp\/v2\/media?parent=20"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kindsonthegenius.com\/python\/wp-json\/wp\/v2\/categories?post=20"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kindsonthegenius.com\/python\/wp-json\/wp\/v2\/tags?post=20"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}