astral-sh/uv

`uv python find` does not respect `--project`

Open

#11,990 opened on Mar 5, 2025

View on GitHub
 (10 comments) (0 reactions) (0 assignees)Rust (84,934 stars) (3,111 forks)batch import
buggood first issue

Description

Summary

❯ uv init example
❯ cd example
❯ uv sync
❯ uv python find
/Users/zb/workspace/uv/example/.venv/bin/python3
❯ cd ..
❯ uv python find
/Users/zb/.local/share/uv/python/cpython-3.13.0-macos-aarch64-none/bin/python3.13
❯ uv python find --project example
/Users/zb/.local/share/uv/python/cpython-3.13.0-macos-aarch64-none/bin/python3.13

This should discover the project environment

Platform

n/a

Version

0.6.4 (04db70662 2025-03-03)

Python version

n/a

Contributor guide