for Windows

Instructions for installing PyCharm on Windows

This lab is for those who are installing PyCharm on Mac machines.

Installation

  1. If you are on a lab computer, skip to the next section.
  2. Download PyCharm.
  3. Locate the downloaded .exe file and double-click to run.
  4. Choose the following options:
    Windows PyCharm installation options
  5. Finish the installation and run Pycharm.
  6. Close any PowerShell or other terminal windows you have open.

Test drive

We are going to create a sample project directory using PowerShell, then open PyCharm and edit files in that directory. A video follows the steps.

  1. Open the Terminal (PowerShell) application.
  2. Run the following in PowerShell:
    
    cd ~                # make sure in your home directory
    mkdir seng-201      # This directory will hold all our code for the course
    cd seng-201         # change to the new directory
    mkdir pycharm-test  # Make a new subdirectory for a test project.
    cd pycharm-test     # change into the subdirectory
    pycharm64 .           # launch PyCharm in the current directory
    
    The pycharm64 command launches the PyCharm program. The command pycharm64 . says launch Pycharm and have it open the current working directory. The symbol . always means the working directory. Sometimes it will be necessary to explicitly tell the CLI we are referring to the working directory; more on those situations as they arise.
  3. A PyCharm window will open after a moment, and you will be asked if you want to “trust” the directory. Select the top option and, if using your own computer, the bottom option:
    Pop-up from PyCharm asking if you trust the contents of the directory. Pick yes.
  4. PyCharm will finish opening, and you will see a code editor with a boilerplate main.py file.

Creating a new file

Let’s create a file in the PowerShell in our project directory. We should see it immediately in PyCharm.

  1. Go back to PowerShell and make sure you are in the pycharm-test directory.
  2. Type the command echo "print('Hello World')" > hello.py to create a Python file.
  3. Go back to PyCharm. You should see the file hello.py in the directory here. Click on it and it will open an empty editor pane.
  4. In the code editor, add the line print("How are you?").
  5. Go back to the Powershell and type cat hello.py. You should see the code.

Next

So you now have PyCharm successfully editing files and interacting with directories on Mac.

You are now ready to code! Move on to PyCharm Basics lab.

Last modified September 1, 2025.