IntelliJ IDEA 2023.1 Help

Manage interpreter paths

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

View interpreter paths

  1. Navigate to File | Project Structure or press Control+Alt+Shift+S.

  2. In the Project Structure dialog, click SDKs node under Platform Settings.

  3. Select the desired interpreter.

  4. View the interpreter paths in the Classpath tab:

    Classpath tab

Add an interpreter path

  1. In the toolbar of the Python Interpreters SDKs page of the Project Structure 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 SDKs page of the Project Structure dialog, click Remove the path.

Last modified: 09 June 2023