# Python interpreter for CMake projects

> **TL;DR**
> Toolchains: all except [Remote](remote-projects-support.html), [WSL](how-to-use-wsl-development-environment-in-product.html), and [Docker](clion-toolchains-in-docker.html)
>
>
>
> Default state: enabled
>
>
>
> Required plugin: Python (bundled)

CLion's CMake integration includes the Python plugin. This means that when you have a [Python interpreter
configured](configuring-available-python-interpreters.html) for your project, CMake picks it up along with all the Python-related environment variables.

> **Note:**
> The integration does not work for profiles that have Python variables defined in CMake Options.

Procedure: Settings for Python integration with CMake

* Python integration with CMake is controlled by two options:

1.  the IDE-wide one in [Advanced Settings](advanced-settings.html),

2.  the project-wide one in `Settings | Build, Execution, CMake | Python Integration`.

Both the project-wide and the IDE-wide options are enabled by default.

Upon any change in these settings, CLion performs [CMake cache reset and project reload](cmake-cache.html#reset-cache).

Procedure: Disable Python integration for the current CMake project

1. Go to `Settings | Build, Execution, CMake | Python Integration`.

2. Clear the Pass Python interpreter to CMake checkbox.

![Disabling Python integration for the current project](https://resources.jetbrains.com/help/img/idea/2026.2/cl_disable_python_cmake_prj.png)

> **Note:**
> The IDE-wide option will remain enabled.

Procedure: Disable Python integration for all CMake projects

1. Go to `Settigns | Advanced Settings`.

2. In the CMake section, clear the Pass Python interpreter to CMake checkbox.

![Disabling Python integration for all projects](https://resources.jetbrains.com/help/img/idea/2026.2/cl_disable_python_cmake_ide.png)

> **Tip:**
> For unopened projects, Python variables will remain in the CMake cache. To remove them, call [Reset Cache and
> Reload Project](cmake-cache.html#reset-cache) for each project.

## See also

### Concepts

[CMake profiles](cmake-profile.html) [CMake presets](cmake-presets.html)

### Settings

[Advanced Settings](advanced-settings.html)

### How tos

[Configure Python interpreters](configuring-available-python-interpreters.html)

