{"id":432,"date":"2019-12-20T22:27:51","date_gmt":"2019-12-20T22:27:51","guid":{"rendered":"http:\/\/jackofalltradesmasterofsome.com\/blog\/?p=432"},"modified":"2020-01-02T19:05:50","modified_gmt":"2020-01-02T19:05:50","slug":"setup-python-anaconda-and-jupyter-notebooks-on-windows-in-10-minutes","status":"publish","type":"post","link":"https:\/\/jackofalltradesmasterofsome.com\/blog\/2019\/12\/20\/setup-python-anaconda-and-jupyter-notebooks-on-windows-in-10-minutes\/","title":{"rendered":"Setup Python, Anaconda and Jupyter Notebooks on Windows in 10 minutes"},"content":{"rendered":"<p>[sg_popup id=454]<\/p>\n\n\n\n<p>Are you interested in getting starting in learning Python. Here is a quick guide on getting your local environment setup with Python, Anaconda and Jupyter Notebooks on Windows in 10 minutes<\/p>\n\n\n\n<!--more-->\n\n\n\n<ol class=\"wp-block-list\"><li>Python can be downloaded and install from the\nfollowing link. <\/li><\/ol>\n\n\n\n<p><a href=\"https:\/\/www.python.org\/downloads\/release\/python-380\/\">https:\/\/www.python.org\/downloads\/release\/python-380\/<\/a><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Once installed you will want to set up your environment variables to that Python commands can be recognized from command Environment Variables. Typically the comman \u201cPy\u201d will work immediately but the command \u201cPython\u201d may have issues if not running from the installation folder. It is just best to set up the variables to avoid any issues down the road<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"623\" height=\"218\" src=\"http:\/\/jackofalltradesmasterofsome.com\/blog\/wp-content\/uploads\/2019\/12\/image.png\" alt=\"\" class=\"wp-image-433\" srcset=\"https:\/\/jackofalltradesmasterofsome.com\/blog\/wp-content\/uploads\/2019\/12\/image.png 623w, https:\/\/jackofalltradesmasterofsome.com\/blog\/wp-content\/uploads\/2019\/12\/image-300x105.png 300w\" sizes=\"auto, (max-width: 623px) 100vw, 623px\" \/><\/figure>\n\n\n\n<ol class=\"wp-block-list\"><li>Navigate to your environment variables from the\nstart menu.<ol><li>Edit \u201csystem variables-path\u201d and add two locations.\nOne for the main python folder and one for the script folder. <\/li><\/ol><\/li><\/ol>\n\n\n\n<ul class=\"wp-block-list\"><li>If you need to locate both paths, navigate to Windows Start menu and open the file location of your Python installation.<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"314\" height=\"312\" src=\"http:\/\/jackofalltradesmasterofsome.com\/blog\/wp-content\/uploads\/2019\/12\/image-1.png\" alt=\"\" class=\"wp-image-434\" srcset=\"https:\/\/jackofalltradesmasterofsome.com\/blog\/wp-content\/uploads\/2019\/12\/image-1.png 314w, https:\/\/jackofalltradesmasterofsome.com\/blog\/wp-content\/uploads\/2019\/12\/image-1-150x150.png 150w, https:\/\/jackofalltradesmasterofsome.com\/blog\/wp-content\/uploads\/2019\/12\/image-1-300x298.png 300w\" sizes=\"auto, (max-width: 314px) 100vw, 314px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\"><li>This will most likely open the path of where the shortcut to Python is located. Repeat the exercise again and navigate to the true location of the folder. <\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"286\" height=\"215\" src=\"http:\/\/jackofalltradesmasterofsome.com\/blog\/wp-content\/uploads\/2019\/12\/image-4.png\" alt=\"\" class=\"wp-image-437\"\/><\/figure>\n\n\n\n<ul class=\"wp-block-list\"><li>From this location you can find the path for the main folder and the scripts folder for your Path locations. <\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"445\" height=\"197\" src=\"http:\/\/jackofalltradesmasterofsome.com\/blog\/wp-content\/uploads\/2019\/12\/image-8.png\" alt=\"\" class=\"wp-image-441\" srcset=\"https:\/\/jackofalltradesmasterofsome.com\/blog\/wp-content\/uploads\/2019\/12\/image-8.png 445w, https:\/\/jackofalltradesmasterofsome.com\/blog\/wp-content\/uploads\/2019\/12\/image-8-300x133.png 300w\" sizes=\"auto, (max-width: 445px) 100vw, 445px\" \/><\/figure>\n\n\n\n<p>5) Close all Command Prompt Windows and reopen. Type the command \u201cPython\u201d and you should get the following message to verify a successful set up. <\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"623\" height=\"152\" src=\"http:\/\/jackofalltradesmasterofsome.com\/blog\/wp-content\/uploads\/2019\/12\/image-5.png\" alt=\"\" class=\"wp-image-438\" srcset=\"https:\/\/jackofalltradesmasterofsome.com\/blog\/wp-content\/uploads\/2019\/12\/image-5.png 623w, https:\/\/jackofalltradesmasterofsome.com\/blog\/wp-content\/uploads\/2019\/12\/image-5-300x73.png 300w\" sizes=\"auto, (max-width: 623px) 100vw, 623px\" \/><\/figure>\n\n\n\n<p><strong>Set up PIP<\/strong><\/p>\n\n\n\n<p>Pip will be needed to setup and install packages and libraries for Python.<\/p>\n\n\n\n<p><a href=\"https:\/\/pip.pypa.io\/en\/stable\/installing\/\">https:\/\/pip.pypa.io\/en\/stable\/installing\/<\/a><\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Download the PIP file from the link above to the same folder as where your scripts were set up in Python. This is not 100% necessary and can be downloaded to other locations, but it is nice to keep these items organized together. <ol><li>For example mine is downloaded to (C:\\Users\\username\\AppData\\Local\\Programs\\Python\\Python38\\Scripts)<\/li><\/ol><ol><li>The file get-pip.py should now be placed in this folder<\/li><\/ol><\/li><li>Open command prompt and navigate to this folder. Type the command \u201cpy get-pip.py\u201d to initiate the installation. <\/li><\/ol>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"597\" height=\"41\" src=\"http:\/\/jackofalltradesmasterofsome.com\/blog\/wp-content\/uploads\/2019\/12\/image-9.png\" alt=\"\" class=\"wp-image-443\" srcset=\"https:\/\/jackofalltradesmasterofsome.com\/blog\/wp-content\/uploads\/2019\/12\/image-9.png 597w, https:\/\/jackofalltradesmasterofsome.com\/blog\/wp-content\/uploads\/2019\/12\/image-9-300x21.png 300w\" sizes=\"auto, (max-width: 597px) 100vw, 597px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\"><li>Once complete, you should now be able to install\npackages and libraries from and command prompt or Python jobs<\/li><\/ul>\n\n\n\n<p><strong>Install Anaconda\/<\/strong> <strong>Jupyter Notebooks<\/strong><\/p>\n\n\n\n<p>Anaconda will install Jupyter Notebooks which is a web browser based Python editor. It is one of the most popular and easy to use editors. It allows you to create easy to write and run cells of codes which makes development and testing very easy<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Download Anaconda from the following locations. This will install Jupyter and Spyder on your computers. <\/li><li>Run the installation file. That is it. Once complete, from Windows -&gt;Start&nbsp; you will be able to run  Jupyter  Notebooks and begin writing your first line of Python code!<\/li><\/ol>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"476\" height=\"109\" src=\"http:\/\/jackofalltradesmasterofsome.com\/blog\/wp-content\/uploads\/2019\/12\/image-11.png\" alt=\"\" class=\"wp-image-445\" srcset=\"https:\/\/jackofalltradesmasterofsome.com\/blog\/wp-content\/uploads\/2019\/12\/image-11.png 476w, https:\/\/jackofalltradesmasterofsome.com\/blog\/wp-content\/uploads\/2019\/12\/image-11-300x69.png 300w\" sizes=\"auto, (max-width: 476px) 100vw, 476px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Are you interested in getting starting in learning Python. Here is a quick guide on getting your local environment setup with Python, Anaconda and Jupyter Notebooks on Windows in 10 minutes<\/p>\n","protected":false},"author":1,"featured_media":135,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[93,94],"tags":[],"class_list":["post-432","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-data-science","category-python"],"_links":{"self":[{"href":"https:\/\/jackofalltradesmasterofsome.com\/blog\/wp-json\/wp\/v2\/posts\/432","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jackofalltradesmasterofsome.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jackofalltradesmasterofsome.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jackofalltradesmasterofsome.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jackofalltradesmasterofsome.com\/blog\/wp-json\/wp\/v2\/comments?post=432"}],"version-history":[{"count":10,"href":"https:\/\/jackofalltradesmasterofsome.com\/blog\/wp-json\/wp\/v2\/posts\/432\/revisions"}],"predecessor-version":[{"id":476,"href":"https:\/\/jackofalltradesmasterofsome.com\/blog\/wp-json\/wp\/v2\/posts\/432\/revisions\/476"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/jackofalltradesmasterofsome.com\/blog\/wp-json\/wp\/v2\/media\/135"}],"wp:attachment":[{"href":"https:\/\/jackofalltradesmasterofsome.com\/blog\/wp-json\/wp\/v2\/media?parent=432"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jackofalltradesmasterofsome.com\/blog\/wp-json\/wp\/v2\/categories?post=432"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jackofalltradesmasterofsome.com\/blog\/wp-json\/wp\/v2\/tags?post=432"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}