-
Notifications
You must be signed in to change notification settings - Fork 674
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
requires-python = "~=3.10"
uses docker container python 3.11 and not a managed python 3.10
#7682
Comments
requires-python = "~=3.10"
uses docker container python 3.11 and not a managed python 3.10
The version specifier You should specify |
Thanks. I didn't know that. |
I still have the problem with |
it's not easy to replicate my exact setup in a minimum working example, but when I use
and importing one of my dependency within a notebook fails with "module not found". It all seems like uv run is not loading/using the environment created previously. |
I'm not familiar with |
If |
I cannot produce that:
|
I use a docker container bundled with python 3.11.9 but my app requires python ~=3.10.
Running
uv sync
uses python system rather than the expected python version~=3.10
.When enforcing
==3.10
, uv downloads and uses a managed python version as expected.Dockerfile
pyprojects.toml
With
requires-python = "~=3.10"
in pyproject.toml:Inspecting the beginning of uv sync output shows it is using python 3.11.9.
With
requires-python = "==3.10"
in pyproject.toml:When requiring
3.10
instead, inspecting the uv sync output shows it is using python 3.10 as expected.The text was updated successfully, but these errors were encountered: