IntelliJ IDEA 2021.3 Help

Install, uninstall, and upgrade 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).

To view the interpreter paths

  1. Open the Project Structure dialog (for example Ctrl+Alt+Shift+S).

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

  3. Select the desired interpreter.

  4. View the interpreter paths in the Classpath tab:

    Classpath tab

To add an interpreter path

  1. In the toolbar of the 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.

To delete interpreter paths

  1. Select the paths to be deleted.

  2. In the toolbar of the SDKs page of the Project Structure dialog, click Remove the path.

Last modified: 01 August 2022