Skip to content

uv pip install panic with invalid major version #13075

@Disservin

Description

@Disservin

Summary

uv pip install torch torchvision --index-url https://download.pytorch.org/whl/cu126 --python-version 311 --only-binary=:all: --target gh200-2025-02-18-3/lib64/python3.11/site-packages/

causes

thread 'main2' panicked at crates/uv-python/src/python_version.rs:160:70:
invalid major version: TryFromIntError(())
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

thread 'main' panicked at /home/runner/work/uv/uv/crates/uv/src/lib.rs:2065:10:
Tokio executor failed, was there a panic?: Any { .. }

Platform

Ubuntu 22.04.5 LTS

Version

uv 0.6.16

Python version

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions