IntelliJ IDEA 2017.3 Help

Configuring Python Interpreter for a Project

The following is only valid when Python Plugin is installed and enabled!

In this section:

Introduction

Python interpreter can be assigned on the project level, and on the level of a Python module.

Note that IntelliJ IDEA stores only the interpreter name in the project settings.

Configuring Python interpreter on the project level

To configure Python SDK as the project-level SDK, follow these steps

  1. Open the Project Structure dialog (e.g. Ctrl+Shift+Alt+S).
  2. In the Project Structure dialog box, click Project node under the Project Settings.
  3. On the General Settings for Project <project name>, click the Project SDK drop-down list, and select the project level SDK from the list of available SDKs.
    python project interpreter
  4. Apply changes.

Configuring Python interpreter on a module level

To configure Python interpreter for a Python module, follow these steps

  1. Open the Project Structure dialog (e.g. Ctrl+Shift+Alt+S).
  2. In the Project Structure dialog box, click Modules node under the Project Settings.
  3. In the Module <module name> pane of the selected Python module, click the Dependencies tab.
  4. Click Module SDK drop-down list, and select the desired Python interpreter from the list of the previously configured available Python interpreters.
    python module interpreter

    If the interpreter you need is missing in the list of available interpreters, click New next to the Module SDK field, choose Python SDK from the pop-up menu, choose interpreter type (local, remote, etc.) and then select the desired executable.

Last modified: 12 December 2017

See Also