IntelliJ IDEA 2016.3 Help

Configuring Python Interpreter for a Project

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. On the main toolbar, click /help/img/idea/2016.3/projectStructure.png. Refer to the section Accessing Project Structure for more details.
  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.
    /help/img/idea/2016.3/python_project_interpreter.png
  4. Apply changes.

Configuring Python interpreter on a module level

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

  1. On the main toolbar, click /help/img/idea/2016.3/projectStructure.png. Refer to the section Accessing Project Structure for more details.
  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.
    /help/img/idea/2016.3/python_module_interpreter.png

    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.

See Also

Concepts:

Language and Framework-Specific Guidelines:

Last modified: 29 November 2016