Skip to content
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

error: Distribution kaleido==0.2.1.post1 @ registry+https://pypi.org/simple can't be installed because it doesn't have a source distribution or wheel for the current platform #10464

Open
jamesdeluk opened this issue Jan 10, 2025 · 1 comment

Comments

@jamesdeluk
Copy link

New to uv, sorry if PEBKAC.

I'm trying to install pycaret (uv add pycaret) to a new project on Windows, Python 3.11.

Get this error:

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

The repo (https://pypi.org/simple/kaleido/) has:

kaleido-0.2.1-py2.py3-none-win_amd64.whl
kaleido-0.2.1.post1-py2.py3-none-manylinux2014_armv7l.whl

So, no kaleido-0.2.1.post1 for Windows.

Checking the PyPi website, there is https://pypi.org/project/kaleido/0.2.1.post1/

pip install kaleido==0.2.1.post1

Although that applies to the manylinux version.

Yet using conda, it works fine; it installs:

Downloading kaleido-0.2.1-py2.py3-none-win_amd64.whl (65.9 MB)

Is there a way for uv to use the compatible version like conda does?

@konstin
Copy link
Member

konstin commented Jan 10, 2025

The problem is that kaleido 0.2.1 and 0.2.1.post1 are technically different versions, and the latter has only a kaleido-0.2.1.post1-py2.py3-none-manylinux2014_armv7l.whl (and due to universal resolution, uv doesn't know which wheels it will need eventually). Setting required platforms is planned in #10067, currently you can try something like

[tool.uv]
environments = [
	"platform_system != "Windows",
	"platform_system == "Windows"
]

or banning 0.2.1.post1 in a constraint.

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

No branches or pull requests

2 participants