Skip to content

Add option to use only separately installed Python #3753

@zoof

Description

@zoof

Feature Description

Would it be possible to add an option to require pdm to use a separately installed Python? For instance, uv has the "--no-managed-python" flag and an environment variable "UV_NO_MANAGED_PYTHON" that forces uv to use only a non-uv installed Python interpreter.

Problem and Solution

My organization would like to restrict users from deviating from approved Python installations and adoption of pdm would hinge on having a means for configuring the use of only centrally installed Python interpreters. I envision it working similarly to uv's setting of UV_NO_MANAGED_PYTHON="true".

Additional Context

No response

Are you willing to contribute to the development of this feature?

  • Yes, I am willing to contribute to the development of this feature.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ⭐ enhancementImprovements for existing features

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions