[Python] How can I install a Python package temporarily with uv without adding it to...

Discussão em 'Python' iniciado por Stack, Agosto 8, 2025.

  1. Stack

    Stack Membro Participativo

    I’m experimenting with the uv package manager for Python. Sometimes I want to try out a package briefly, but I don’t want to commit it to my project’s dependencies until I know I’ll use it.

    In npm, one can run:

    npm install package-name --no-save

    which installs locally without modifying package.json.

    I checked:

    uv add --help

    and the documentation, but I couldn’t find an equivalent --no-save option.

    Is there an option or command in uv to install a package temporarily without adding it to pyproject.toml? If not, what’s the correct way to achieve this behavior?

    Continue reading...

Compartilhe esta Página