Skip to content

How to have a full python environment? #12852

Open
@youkaichao

Description

@youkaichao

Question

I'm installing a new environment with uv venv ~/uv_envs/test --python 3.12 , it uses my system's python as the interpreter.

However, i find that my system intepreter is not complete, it does not have /usr/include/python3.12 , but python -c "from sysconfig import get_paths; print(get_paths()['include'])" still reports that directory.

Can I somehow tell uv to download a full python environment?

I can use sudo apt install python3.12-dev as a workaround, but then the environment is not reproducible, i.e. it depends on the initial python interpreter i installed.

can i make uv take the full control, downloading a full python regardless of my initial python environment?

Platform

Ubuntu 20.04, arm64

Version

uv 0.5.11

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionAsking for clarification or support

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions