astral-sh / uv

An extremely fast Python package and project manager, written in Rust.
https://docs.astral.sh/uv
Apache License 2.0
23.91k stars 689 forks source link

managed installations - incompatible with the project's Python requirement `>=3.13` #8051

Open masiarek opened 1 week ago

masiarek commented 1 week ago

This is most likely my mac set-up issue - not a bug - but maybe you could guide me how to fix it? I tried Python 3.12 as well - the same symptom... ''' amasa@Adams-iMac my_p3 % uv sync --verbose DEBUG uv 0.4.20 DEBUG Found project root: /Volumes/T7/_trash/my_p3 DEBUG No workspace root found, using project root DEBUG Reading requests from /Volumes/T7/_trash/my_p3/.python-version DEBUG The virtual environment's Python version satisfies Python 3.11 DEBUG The virtual environment's Python version does not meet the project's Python requirement: >=3.13 DEBUG Searching for Python 3.11 in managed installations or system path DEBUG Searching for managed installations at /Volumes/T5/.local/share/uv/python DEBUG Skipping incompatible managed installation cpython-3.12.7-macos-x86_64-none DEBUG Found managed installation cpython-3.11.10-macos-x86_64-none DEBUG Found cpython-3.11.10-macos-x86_64-none at /Volumes/T5/.local/share/uv/python/cpython-3.11.10-macos-x86_64-none/bin/python3 (managed installations) Using CPython 3.11.10 error: The Python request from .python-version resolved to Python 3.11.10, which is incompatible with the project's Python requirement: >=3.13 '''

zanieb commented 1 week ago

I think you wanted to create your project with a different requires-python, e.g. requires-python = ">=3.11" or uv init --python 3.11 — or, you want to change your pin, e.g. uv python pin 3.13

masiarek commented 1 week ago

yes, pinning (uv python pin 3.13) - solved the issue. Video: https://youtu.be/hVXmQWQ-_I0

image