{"id":15,"date":"2018-12-07T03:01:00","date_gmt":"2018-12-07T03:01:00","guid":{"rendered":""},"modified":"2024-09-13T14:25:59","modified_gmt":"2024-09-13T14:25:59","slug":"python-tutorial-series-set-up","status":"publish","type":"post","link":"https:\/\/zofxare.com\/zofxare\/blog\/2018\/12\/07\/python-tutorial-series-set-up\/","title":{"rendered":"Python Tutorial Series &#8211; Set Up"},"content":{"rendered":"<p>I&#8217;m working on learning Python as part of learning about Data Science, so in the process of doing that, I thought I&#8217;d put together a series of Python tutorial blog posts. Python is supposed to be easy to learn, so we&#8217;ll see.<\/p>\n<p>In order to use Python on your local machine, it needs to be downloaded from here. There are 2 major versions available. The latest is 3.7.1. There is also a version 2.7.15. I&#8217;m going to focus on version 3, which is the result of cleaning up version 2 without regards to backwards compatibility. Version 2 will not have any new major releases, but it&#8217;s still in use by a lot of people. In fact, an online course I tried taking still used version 2. It is possible to install version 2 and version 3 on the same computer though. The trick to getting them both to work from the command line is to rename the executable of one version a different name than the other version. For example, I renamed python.exe for version 2 python2.exe. In a Windows command prompt, I can run version 3 by typing python. I can also run version 2 by typing python2 in the command prompt. Both versions need to have their directories added to the environment variable PATH setting.<\/p>\n<p>For version 3, add the following to the\u00a0environment variable PATH setting:<\/p>\n<p>C:your path to python3Scripts<\/p>\n<p>C:your path to python3<\/p>\n<p>For version 2, add the following to the\u00a0environment variable PATH setting:<\/p>\n<p>C:your path to python2<\/p>\n<p>To code in python, Anaconda is a popular data science tool which comes packaged with Python. There are also online Python editors, such as\u00a0https:\/\/www.onlinegdb.com\u00a0or\u00a0https:\/\/repl.it\/repls\/SoftRashSearchengine.<\/p>\n<p>More Python<\/p>\n<p><iframe style=\"width:120px;height:240px;\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\" frameborder=\"0\" src=\"\/\/ws-na.amazon-adsystem.com\/widgets\/q?ServiceVersion=20070822&#038;OneJS=1&#038;Operation=GetAdHtml&#038;MarketPlace=US&#038;source=ss&#038;ref=as_ss_li_til&#038;ad_type=product_link&#038;tracking_id=zofxare-20&#038;language=en_US&#038;marketplace=amazon&#038;region=US&#038;placement=B0785Q7GSY&#038;asins=B0785Q7GSY&#038;linkId=db5e82d74b668701871debd783c9ddf6&#038;show_border=true&#038;link_opens_in_new_window=true\"><\/iframe><iframe style=\"width:120px;height:240px;\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\" frameborder=\"0\" src=\"\/\/ws-na.amazon-adsystem.com\/widgets\/q?ServiceVersion=20070822&#038;OneJS=1&#038;Operation=GetAdHtml&#038;MarketPlace=US&#038;source=ss&#038;ref=as_ss_li_til&#038;ad_type=product_link&#038;tracking_id=zofxare-20&#038;language=en_US&#038;marketplace=amazon&#038;region=US&#038;placement=B077Z55G3B&#038;asins=B077Z55G3B&#038;linkId=52c196ba1fda10ea7b99169422b21af7&#038;show_border=true&#038;link_opens_in_new_window=true\"><\/iframe><iframe style=\"width:120px;height:240px;\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\" frameborder=\"0\" src=\"\/\/ws-na.amazon-adsystem.com\/widgets\/q?ServiceVersion=20070822&#038;OneJS=1&#038;Operation=GetAdHtml&#038;MarketPlace=US&#038;source=ss&#038;ref=as_ss_li_til&#038;ad_type=product_link&#038;tracking_id=zofxare-20&#038;language=en_US&#038;marketplace=amazon&#038;region=US&#038;placement=1491912057&#038;asins=1491912057&#038;linkId=e818186a630b59613fa23378eab853f9&#038;show_border=true&#038;link_opens_in_new_window=true\"><\/iframe><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;m working on learning Python as part of learning about Data Science, so in the process of doing that, I thought I&#8217;d put together a series of Python tutorial blog posts. Python is supposed to be easy to learn, so we&#8217;ll see. In order to use Python on your local machine, it needs to be [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"nf_dc_page":"","om_disable_all_campaigns":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[13],"tags":[],"class_list":["post-15","post","type-post","status-publish","format-standard","hentry","category-python"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Python Tutorial Series - Set Up - Zofxare Blog Home<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/zofxare.com\/zofxare\/blog\/2018\/12\/07\/python-tutorial-series-set-up\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Python Tutorial Series - Set Up - Zofxare Blog Home\" \/>\n<meta property=\"og:description\" content=\"I&#8217;m working on learning Python as part of learning about Data Science, so in the process of doing that, I thought I&#8217;d put together a series of Python tutorial blog posts. Python is supposed to be easy to learn, so we&#8217;ll see. In order to use Python on your local machine, it needs to be [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/zofxare.com\/zofxare\/blog\/2018\/12\/07\/python-tutorial-series-set-up\/\" \/>\n<meta property=\"og:site_name\" content=\"Zofxare Blog Home\" \/>\n<meta property=\"article:published_time\" content=\"2018-12-07T03:01:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-09-13T14:25:59+00:00\" \/>\n<meta name=\"author\" content=\"zofxare\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"zofxare\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/zofxare.com\\\/zofxare\\\/blog\\\/2018\\\/12\\\/07\\\/python-tutorial-series-set-up\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/zofxare.com\\\/zofxare\\\/blog\\\/2018\\\/12\\\/07\\\/python-tutorial-series-set-up\\\/\"},\"author\":{\"name\":\"zofxare\",\"@id\":\"https:\\\/\\\/zofxare.com\\\/zofxare\\\/blog\\\/#\\\/schema\\\/person\\\/094f5dde70100b9f8fbc63174a2a40ce\"},\"headline\":\"Python Tutorial Series &#8211; Set Up\",\"datePublished\":\"2018-12-07T03:01:00+00:00\",\"dateModified\":\"2024-09-13T14:25:59+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/zofxare.com\\\/zofxare\\\/blog\\\/2018\\\/12\\\/07\\\/python-tutorial-series-set-up\\\/\"},\"wordCount\":292,\"commentCount\":0,\"articleSection\":[\"python\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/zofxare.com\\\/zofxare\\\/blog\\\/2018\\\/12\\\/07\\\/python-tutorial-series-set-up\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/zofxare.com\\\/zofxare\\\/blog\\\/2018\\\/12\\\/07\\\/python-tutorial-series-set-up\\\/\",\"url\":\"https:\\\/\\\/zofxare.com\\\/zofxare\\\/blog\\\/2018\\\/12\\\/07\\\/python-tutorial-series-set-up\\\/\",\"name\":\"Python Tutorial Series - Set Up - Zofxare Blog Home\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/zofxare.com\\\/zofxare\\\/blog\\\/#website\"},\"datePublished\":\"2018-12-07T03:01:00+00:00\",\"dateModified\":\"2024-09-13T14:25:59+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/zofxare.com\\\/zofxare\\\/blog\\\/#\\\/schema\\\/person\\\/094f5dde70100b9f8fbc63174a2a40ce\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/zofxare.com\\\/zofxare\\\/blog\\\/2018\\\/12\\\/07\\\/python-tutorial-series-set-up\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/zofxare.com\\\/zofxare\\\/blog\\\/2018\\\/12\\\/07\\\/python-tutorial-series-set-up\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/zofxare.com\\\/zofxare\\\/blog\\\/2018\\\/12\\\/07\\\/python-tutorial-series-set-up\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/zofxare.com\\\/zofxare\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Python Tutorial Series &#8211; Set Up\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/zofxare.com\\\/zofxare\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/zofxare.com\\\/zofxare\\\/blog\\\/\",\"name\":\"Zofxare Blog Home\",\"description\":\"The Zofxare blog\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/zofxare.com\\\/zofxare\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/zofxare.com\\\/zofxare\\\/blog\\\/#\\\/schema\\\/person\\\/094f5dde70100b9f8fbc63174a2a40ce\",\"name\":\"zofxare\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/?s=96&d=retro&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/?s=96&d=retro&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/?s=96&d=retro&r=g\",\"caption\":\"zofxare\"},\"url\":\"https:\\\/\\\/zofxare.com\\\/zofxare\\\/blog\\\/author\\\/zofxare\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Python Tutorial Series - Set Up - Zofxare Blog Home","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:\/\/zofxare.com\/zofxare\/blog\/2018\/12\/07\/python-tutorial-series-set-up\/","og_locale":"en_US","og_type":"article","og_title":"Python Tutorial Series - Set Up - Zofxare Blog Home","og_description":"I&#8217;m working on learning Python as part of learning about Data Science, so in the process of doing that, I thought I&#8217;d put together a series of Python tutorial blog posts. Python is supposed to be easy to learn, so we&#8217;ll see. In order to use Python on your local machine, it needs to be [&hellip;]","og_url":"https:\/\/zofxare.com\/zofxare\/blog\/2018\/12\/07\/python-tutorial-series-set-up\/","og_site_name":"Zofxare Blog Home","article_published_time":"2018-12-07T03:01:00+00:00","article_modified_time":"2024-09-13T14:25:59+00:00","author":"zofxare","twitter_card":"summary_large_image","twitter_misc":{"Written by":"zofxare","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/zofxare.com\/zofxare\/blog\/2018\/12\/07\/python-tutorial-series-set-up\/#article","isPartOf":{"@id":"https:\/\/zofxare.com\/zofxare\/blog\/2018\/12\/07\/python-tutorial-series-set-up\/"},"author":{"name":"zofxare","@id":"https:\/\/zofxare.com\/zofxare\/blog\/#\/schema\/person\/094f5dde70100b9f8fbc63174a2a40ce"},"headline":"Python Tutorial Series &#8211; Set Up","datePublished":"2018-12-07T03:01:00+00:00","dateModified":"2024-09-13T14:25:59+00:00","mainEntityOfPage":{"@id":"https:\/\/zofxare.com\/zofxare\/blog\/2018\/12\/07\/python-tutorial-series-set-up\/"},"wordCount":292,"commentCount":0,"articleSection":["python"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/zofxare.com\/zofxare\/blog\/2018\/12\/07\/python-tutorial-series-set-up\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/zofxare.com\/zofxare\/blog\/2018\/12\/07\/python-tutorial-series-set-up\/","url":"https:\/\/zofxare.com\/zofxare\/blog\/2018\/12\/07\/python-tutorial-series-set-up\/","name":"Python Tutorial Series - Set Up - Zofxare Blog Home","isPartOf":{"@id":"https:\/\/zofxare.com\/zofxare\/blog\/#website"},"datePublished":"2018-12-07T03:01:00+00:00","dateModified":"2024-09-13T14:25:59+00:00","author":{"@id":"https:\/\/zofxare.com\/zofxare\/blog\/#\/schema\/person\/094f5dde70100b9f8fbc63174a2a40ce"},"breadcrumb":{"@id":"https:\/\/zofxare.com\/zofxare\/blog\/2018\/12\/07\/python-tutorial-series-set-up\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/zofxare.com\/zofxare\/blog\/2018\/12\/07\/python-tutorial-series-set-up\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/zofxare.com\/zofxare\/blog\/2018\/12\/07\/python-tutorial-series-set-up\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/zofxare.com\/zofxare\/blog\/"},{"@type":"ListItem","position":2,"name":"Python Tutorial Series &#8211; Set Up"}]},{"@type":"WebSite","@id":"https:\/\/zofxare.com\/zofxare\/blog\/#website","url":"https:\/\/zofxare.com\/zofxare\/blog\/","name":"Zofxare Blog Home","description":"The Zofxare blog","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/zofxare.com\/zofxare\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/zofxare.com\/zofxare\/blog\/#\/schema\/person\/094f5dde70100b9f8fbc63174a2a40ce","name":"zofxare","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=retro&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=retro&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=retro&r=g","caption":"zofxare"},"url":"https:\/\/zofxare.com\/zofxare\/blog\/author\/zofxare\/"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/zofxare.com\/zofxare\/blog\/wp-json\/wp\/v2\/posts\/15","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/zofxare.com\/zofxare\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/zofxare.com\/zofxare\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/zofxare.com\/zofxare\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/zofxare.com\/zofxare\/blog\/wp-json\/wp\/v2\/comments?post=15"}],"version-history":[{"count":1,"href":"https:\/\/zofxare.com\/zofxare\/blog\/wp-json\/wp\/v2\/posts\/15\/revisions"}],"predecessor-version":[{"id":177,"href":"https:\/\/zofxare.com\/zofxare\/blog\/wp-json\/wp\/v2\/posts\/15\/revisions\/177"}],"wp:attachment":[{"href":"https:\/\/zofxare.com\/zofxare\/blog\/wp-json\/wp\/v2\/media?parent=15"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/zofxare.com\/zofxare\/blog\/wp-json\/wp\/v2\/categories?post=15"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/zofxare.com\/zofxare\/blog\/wp-json\/wp\/v2\/tags?post=15"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}