> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sifr.sh/llms.txt
> Use this file to discover all available pages before exploring further.

# SIFR-PYENV-0006: Selected interpreter does not belong to the configured virtual environment.

> Selected interpreter does not belong to the configured virtual environment.

`SIFR-PYENV-0006` belongs to the **Embedded CPython environment** diagnostic family. It means: selected interpreter does not belong to the configured virtual environment.

## Why It Happens

The selected Python environment is missing, malformed, ambiguous, or fails probe/ABI checks. Configure exactly one root-application uv environment and ensure the interpreter, site-packages, and declared imports are available.

<Info>
  Use `sifr --explain SIFR-PYENV-0006` locally to see the renderer's exact message template and any machine-applicable suggestions for the compiler version you are running.
</Info>

## Details

| Field                  | Value                                                                                                         |
| ---------------------- | ------------------------------------------------------------------------------------------------------------- |
| Code                   | `SIFR-PYENV-0006`                                                                                             |
| Family                 | `PYENV`                                                                                                       |
| Severity               | Error                                                                                                         |
| Stability              | stable                                                                                                        |
| Owner                  | `sifr_package::python`                                                                                        |
| Representative fixture | `crates/sifr_package/src/python/probe_validation_tests.rs::probe_rejects_prefix_outside_venv_with_pyenv_0006` |

See the [Error Codes index](/diagnostics/error-codes) for the complete catalog.
