PyCharm 2023.2 Help

Manage interpreter paths

PyCharm makes it possible to add paths to the selected interpreter. These paths will be added to the environment variable PYTHONPATH. Also, PyCharm will index these paths and (potentially) resolve the objects of the code (for example, imports of packages).

View interpreter paths

  1. Do one of the following:

    • Press Control+Alt+S to open the IDE settings and then select Project <project name> | Python Interpreter.

    • Click the Python Interpreter selector and choose Interpreter Settings.

  2. Expand the list of the available interpreters and click Show All.

    Show all available interpreters
  3. Select the desired interpreter.

  4. In the toolbar of the Python Interpreters dialog, click the button Show an interpreter path. The existing paths of the selected interpreter show up in the Interpreter Paths dialog .

    Show an interpreter path

Add an interpreter path

  1. In the toolbar of the Python Interpreters dialog, click Add a path.

  2. Choose the desired path in the Select Path dialog. Note that to add a path to a particular Python version you need to download it from https://www.python.org/ and install it on your machine.

Delete interpreter paths

  1. Select the paths to be deleted.

  2. In the toolbar of the Interpreter Paths dialog, click Remove the path.

    The removed paths remain in the list with the note "removed by user".

Reload interpreter paths

If an interpreter has been updated, it is a good idea to refresh its paths. You can do it by either way:

  • In the toolbar of the Interpreter Paths dialog, click Reload the interpreter paths.

  • Press Shift twice and type "Rescan" in the Actions tab of the search dialog. Select Rescan Available Python Modules and Packages.

    Rescan Python modules and packages
Last modified: 23 August 2023