(2) Setting Up Python

Due: Monday, January 12, 11:59 PM Eastern

Installing Python

In this document I describe how to install Python on your personal computer so you can run Python programs. Please follow the instructions carefully, even if you already have a version of Python installed. The little details matter, and missing them could mean errors that need to be fixed later.

Jungeun Seo made some video walkthroughs for tutorials 1 - 3. You can find them in Tutorial Videos folder on the Google Drive. You’re not required to watch them, but you may find them helpful in combination with the written instructions.

Visit https://www.python.org/downloads/ and press the big yellow button to download the Python install manager.

Mac users: Slight differences in Python installer download (Click for details)


The screenshot below is for Windows, but on a Mac, the above URL will take you to the Mac download page instead, so just click the similar-looking big yellow button. Also click “Allow” when Safari asks you to allow the download.

Website to download Python

Open your Downloads folder and find the file you downloaded. It should be named something like “python-manager” or “python” with a version number. Double-click on the file. In the window that pops up, choose “Install Python” and follow the instructions that appear, while noting the following:

If something goes wrong, one option is to uninstall Python (if it installed) and try again from scratch. On Windows, you can uninstall Python from the Apps & features settings. On a Mac, you can drag the Python application from the Applications folder to the Trash. If you need further help, please ask anyone on staff.

Once the installation completes, we’re ready to try it out! First, we’ll use something called a terminal.

What is a Terminal?

A terminal is a place where special commands can be typed as instructions for a computer. Using a terminal is not the same as programming in Python, though there can be some similarities. Visually, a terminal is just a window, often with a black background. Here’s one example, from Windows:

Windows Command Prompt

We can ignore text like that shown in the first two lines of the image above. Different text or no such text at all may appear depending on your computer.

Here’s another example, from MacOS:

Mac Terminal

Again, we can ignore the first line of text in the image. Different text or no such text at all may appear depending on your computer.

The text C:\Users\Steve\Documents\EECS_183\practice_code> (Windows) or warthur@MacBook-Air-4 practice_code % (Mac) above is called the prompt, because it’s meant to prompt us (ask us) to type a command. When a terminal window is open, it’s always open inside of some folder; the part before the > (Windows) or % (Mac) names the folder in which the terminal is open.

Mac users: The prompt may look a little different (Click for details)


On a Mac, the prompt text will look a little different. If my Mac computer is named StevesMac, and I open the terminal in the practice_code folder, then it could look like any of the following, among other similar possibilities:

In the image, you can see that the cursor is just to the right of the > or % symbol. This is where we can type a command. The terminal will be an important tool for us to run our Python programs. Terminals can do so much more too, but we won’t deal with that in this course.

Running a Python Program in a Terminal

Navigate to your EECS_183 folder using the File Explorer (Windows) or Finder (Mac), and then expand the box below corresponding to your operating system.

Windows Users: Terminal (Click for details)


Open the practice_code folder. Right-click in an open area in the folder and choose Open in Terminal. This is the easiest way to open a terminal inside of the practice_code folder.

In the window that pops up, type python hello.py and then press enter.

If you get a message that the command is not recognized or anything like that, then the easiest thing to do is to again run the installer file you downloaded. Choose the Modify option, click Next to skip the first part, and then look for a check box that says Add Python to environment variables or Add python.exe to PATH.

When you’ve done this, you should see something like the following: Running hello.py in the Windows terminal Note that the result of the program is that the message Hello world! appears in the terminal.

Mac Users: Terminal (Click for details)


Control-click on the practice_code folder and choose New Terminal at Folder. This is the easiest way to open a terminal inside of the practice_code folder.

In the window that pops up, type python3 hello.py and then press return. Note that the result of the program is that the message Hello world! appears in the terminal.

Once you’ve completed the above, you’ve run your first Python program! Usually we’ll do this in VS Code, but that requires just a little more setup.

Did you get an error? (Click for details)

By default, the Windows installation uses the name python, while the Mac installation uses the name python3. Please keep this in mind.


© 2026 Steven Bogaerts.

Materials for this assignment were developed with assistance from course staff, including Jungeun Seo.

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.

Creative Commons License

All materials provided for this course, including but not limited to labs, projects, notes, and starter code, are the copyrighted intellectual property of the author(s) listed in the copyright notice above. While these materials are licensed for public non-commercial use, this license does not grant you permission to post or republish your solutions to these assignments.

It is strictly prohibited to post, share, or otherwise distribute solution code (in part or in full) in any manner or on any platform, public or private, where it may be accessed by anyone other than the course staff. This includes, but is not limited to:

To do so is a violation of the university’s academic integrity policy and will be treated as such.

Asking questions by posting small code snippets to our private course discussion forum is not a violation of this policy.