Skip to content

uv sync error: error: Distribution xxx can't be installed because it doesn't have a source distribution or wheel for the current platform #12721

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

Open
SimFG opened this issue Apr 7, 2025 · 7 comments
Labels
question Asking for clarification or support

Comments

@SimFG
Copy link

SimFG commented Apr 7, 2025

Summary

full log:

error: Distribution `pyside6==6.9.0 @ registry+https://pypi.org/simple` can't be installed because it doesn't have a source distribution or wheel for the current platform

hint: You're on macOS (`macosx_10_16_x86_64`), but `pyside6` (v6.9.0) only has wheels for the following platforms: `manylinux_2_28_x86_64`, `manylinux_2_39_aarch64`, `macosx_12_0_universal2`, `win_amd64`, `win_arm64`

If I use pip directly, it can be successfully installed, although this is not a strict match. Is there any way for me to bypass this verification, such as forcing the current system version to be successfully installed?

Platform

mac os

Version

uv 0.6.12

Python version

Python 3.12.7

@SimFG SimFG added the bug Something isn't working label Apr 7, 2025
@charliermarsh
Copy link
Member

@charliermarsh charliermarsh added question Asking for clarification or support and removed bug Something isn't working labels Apr 7, 2025
@SimFG
Copy link
Author

SimFG commented Apr 8, 2025

I found this document, but because I am not very familiar with the use of UV, I still don't know how to solve my problem.
@charliermarsh I would be grateful if you could help me.

@SimFG
Copy link
Author

SimFG commented Apr 8, 2025

@charliermarsh Can you give me some advice? I have tried many methods but to no avail.

@charliermarsh
Copy link
Member

Can you try using uv add PySide6==6.5.2 instead? That includes a wheel that's compatible with your platform.

@SimFG
Copy link
Author

SimFG commented Apr 8, 2025

@charliermarsh thanks a lot, it's work.
But how can I achieve the same effect as pip? Even if I use venv's pip installation, sync still reports an error

Image

@SimFG
Copy link
Author

SimFG commented Apr 8, 2025

One of my dependent packages requires "PySide6>=6.8.2.1"

@SimFG
Copy link
Author

SimFG commented Apr 8, 2025

I installed the package manually in the venv environment using pip, but uv still reports the same error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Asking for clarification or support
Projects
None yet
Development

No branches or pull requests

2 participants