-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Closed
Labels
bugSomething isn't workingSomething isn't workingcliRelated to the command line interfaceRelated to the command line interface
Description
When there exists .python-version file (e.g., created by uv python pin), creating a virtual environment with UV does not create the correct version? I'm not sure if this behavior is intended.
/private/var/folders/dh/q65wqsbs3tn0993nc2j5dzy00000gn/T/tmp.Fv2SE2ebMR
.venv ❯ uv python pin 3.11.9
Pinned `.python-version` to `3.11.9`
/private/var/folders/dh/q65wqsbs3tn0993nc2j5dzy00000gn/T/tmp.Fv2SE2ebMR
.venv ❯ uv run python --version
Python 3.12.4
/private/var/folders/dh/q65wqsbs3tn0993nc2j5dzy00000gn/T/tmp.Fv2SE2ebMR
.venv ❯ uv run python -m site
sys.path = [
'/private/var/folders/dh/q65wqsbs3tn0993nc2j5dzy00000gn/T/tmp.Fv2SE2ebMR',
'/Users/keto/Library/Application Support/uv/python/cpython-3.12.4-macos-x86_64-none/lib/python312.zip',
'/Users/keto/Library/Application Support/uv/python/cpython-3.12.4-macos-x86_64-none/lib/python3.12',
'/Users/keto/Library/Application Support/uv/python/cpython-3.12.4-macos-x86_64-none/lib/python3.12/lib-dynload',
'/private/var/folders/dh/q65wqsbs3tn0993nc2j5dzy00000gn/T/tmp.cVJnZhhRMn/.venv/lib/python3.12/site-packages',
]
USER_BASE: '/Users/keto/.local' (exists)
USER_SITE: '/Users/keto/.local/lib/python3.12/site-packages' (exists)
ENABLE_USER_SITE: False
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingcliRelated to the command line interfaceRelated to the command line interface