-
Notifications
You must be signed in to change notification settings - Fork 178
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
Pixi has trouble installing mlx / improve error message for no matching wheels based on macOS version #562
Comments
I just checked and I get a similar error message. With I also think the |
Yeah, so I tested with the master branch of |
So it seems it cannot select the correct version because of the |
Actually, I just debugged this a little bit and the problem lies in our conservative macOS version choosing. We select an old macOS version but the If you add the following to your [system-requirements]
macos = "14.0" It will start to work. We will definitely have to make the error message better and give actionable advice. |
Super debugging! Thank you folks!! (Just to confirm it all works here, i just put 13.1 instead of 14 because thats what i am on..) |
Thanks! We were already discussing making the error clearer, I mean even we had to dig into the code 😅 Alright if we close this? We could make a seperate issue if you like with regards to the error. |
Yes, totally! Happy mlx+pixi user here! |
The example as it was would not solve, it ends with a fairly obscure error: ``` × failed to solve the conda requirements of 'mlx' 'osx-arm64' ╰─▶ Cannot solve the request because of: mlx >=0.5.0,<0.6.0 cannot be installed because there are no viable options: └─ mlx 0.5.0 | 0.5.0 | 0.5.0 | 0.5.0 | 0.5.0 | 0.5.1 | 0.5.1 | 0.5.1 | 0.5.1 | 0.5.1 would require └─ __osx >=13.3, for which no candidates were found. ``` This was already found previously in prefix-dev#562 (comment), and the fix is to add a minimum macOS version. Note that the conda-forge package metadata (saying >=13.3) is also incorrect, the 13.5 minimum added to the example comes from the MLX docs: https://ml-explore.github.io/mlx/build/html/install.html# While we're at it, also update to a recent MLX version.
The example as it was would not solve, it ends with a fairly obscure error: ``` × failed to solve the conda requirements of 'mlx' 'osx-arm64' ╰─▶ Cannot solve the request because of: mlx >=0.5.0,<0.6.0 cannot be installed because there are no viable options: └─ mlx 0.5.0 | 0.5.0 | 0.5.0 | 0.5.0 | 0.5.0 | 0.5.1 | 0.5.1 | 0.5.1 | 0.5.1 | 0.5.1 would require └─ __osx >=13.3, for which no candidates were found. ``` This was already found previously in prefix-dev#562 (comment), and the fix is to add a minimum macOS version. Note that the conda-forge package metadata (saying >=13.3) is also incorrect, the 13.5 minimum added to the example comes from the MLX docs: https://ml-explore.github.io/mlx/build/html/install.html# While we're at it, also update to a recent MLX version.
Checks
I have checked that this issue has not already been reported.
I have confirmed this bug exists on the latest version of pixi, using
pixi --version
.Reproducible example
pixi init mlx cd mlx pixi add python=3.10 pixi add --pypi mlx
Issue description
mlx is the new machine learning library from Apple. It comes with wheels.
in pixi shell
pip install mlx
suceeds with pixi's python 3.10. mlx can then be imported.Expected behavior
The installation shouyld work, i think?
The text was updated successfully, but these errors were encountered: