Data Science – jack of all trades master of some https://jackofalltradesmasterofsome.com/blog Consultant - Real Estate - Author - Business Intelligence Thu, 02 Jan 2020 19:05:50 +0000 en-US hourly 1 https://wordpress.org/?v=6.5.3 Setup Python, Anaconda and Jupyter Notebooks on Windows in 10 minutes https://jackofalltradesmasterofsome.com/blog/2019/12/20/setup-python-anaconda-and-jupyter-notebooks-on-windows-in-10-minutes/ Fri, 20 Dec 2019 22:27:51 +0000 http://jackofalltradesmasterofsome.com/blog/?p=432 [sg_popup id=454]

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

  1. Python can be downloaded and install from the following link.

https://www.python.org/downloads/release/python-380/

  • 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 “Py” will work immediately but the command “Python” 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
  1. Navigate to your environment variables from the start menu.
    1. Edit “system variables-path” and add two locations. One for the main python folder and one for the script folder.
  • If you need to locate both paths, navigate to Windows Start menu and open the file location of your Python installation.
  • 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.
  • From this location you can find the path for the main folder and the scripts folder for your Path locations.

5) Close all Command Prompt Windows and reopen. Type the command “Python” and you should get the following message to verify a successful set up.

Set up PIP

Pip will be needed to setup and install packages and libraries for Python.

https://pip.pypa.io/en/stable/installing/

  1. 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.
    1. For example mine is downloaded to (C:\Users\username\AppData\Local\Programs\Python\Python38\Scripts)
    1. The file get-pip.py should now be placed in this folder
  2. Open command prompt and navigate to this folder. Type the command “py get-pip.py” to initiate the installation.
  • Once complete, you should now be able to install packages and libraries from and command prompt or Python jobs

Install Anaconda/ Jupyter Notebooks

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

  1. Download Anaconda from the following locations. This will install Jupyter and Spyder on your computers.
  2. Run the installation file. That is it. Once complete, from Windows ->Start  you will be able to run Jupyter Notebooks and begin writing your first line of Python code!
]]>