Skip to content

uv export should not need to have python installed #8634

@mjpieters

Description

@mjpieters

We are running a CI pipeline that includes a mend.io license compliance scanner, which looks for a requirements.txt file (it doesn't yet support uv.lock as an input file). We run the mend scanner in a minimal docker container with no Python installed. I can trivially install uv into that container, but without a python installation, I can't export the lock file to requirements.txt file:

$ uv --version
uv 0.4.27
$ uv export --output-file requirements.txt
error: No interpreter found for Python >=3.12 in managed installations or system path

Python should not be necessary here, all that is needed is that uv produces a requirements.txt file for another tool to then process.

The same applies to the tree command; uv has all the information needed already, a Python interpreter should not be necessary.

Metadata

Metadata

Assignees

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