How to setup Python for Computer Science Classes

Summary

This article provides instructions for how to set up Python on your personal computer for use in Computer Science classes.

Body

Overview

The following instructions have been written by Kevin Angstadt and are up to date as of September 2024.

Follow these steps carefully to duplicate the classroom programming environment on your personal computer. If you run into trouble, please contact the IT Help Desk.

Instructions

Click on one of the choices below to view the contents.

Windows Instructions
  1. Set up OneDrive:
  2. Get the Python Interpreter:
  3. Get the Pycharm Editor:
  4. Make sure your project works:
    • ​​​​​​​​​​​​​​​​​​​​​Open your JetBrains Pycharm Community Edition program and click through the setup. You shouldn't need to change any of the defaults. Open your existing project folder found in your OneDrive folder.
    • Python will likely not be set up correctly for this project when it first opens. If you try to run a program and a window pops up or you see a (warning message about the Python interpreter in the main editor), cancel out of the pop up window and then:
      • Click the gear at the top right of the window and choose "Settings".
      • In the menu on the left side of the preferences window, select the option that begins with "Project".
      • Click "Python Interpreter" .
      • Next to the interpreter dropdown in the main part of the window, click "Add Interpreter" and select "Add Local Interpreter...".
      • Choose "System Interpreter" in the left menu and then make sure Python 3.12 is selected in the dropdown on the right side.
      • Click OK and then OK again.
      • You should now be able to run python files from class on your personal computer.
Mac Instructions
  1. Set up OneDrive:
  2. Get the Python Interpreter:
  3. Get the Pycharm Editor:
  4. Make sure your project works:
    • ​​​​​​​​​​​​​​​​​​​​​Open your Pycharm program and click through the setup. You shouldn't need to change any of the defaults. Open your existing project folder found in your OneDrive folder.
    • Python will likely not be set up correctly for this project when it first opens. If you try to run a program and a window pops up or you see a (warning message about the Python interpreter in the main editor), cancel out of the pop up window and then:
      • Click the gear at the top right of the window and choose "Settings".
      • In the menu on the left side of the preferences window, select the option that begins with "Project".
      • Click "Python Interpreter" .
      • Next to the interpreter dropdown in the main part of the window, click "Add Interpreter" and select "Add Local Interpreter...".
      • Choose "System Interpreter" in the left menu and then make sure Python 3.12 is selected in the dropdown on the right side.
      • Click OK and then OK again.
      • You should now be able to run python files from class on your personal computer.

 

Details

Details

Article ID: 157859
Created
Tue 9/12/23 2:05 PM
Modified
Thu 9/12/24 5:21 PM