-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Cannot install recent version of Jax/Jaxlib on MacOS Sonoma #19067
Comments
Hi Chris, thanks for the report! This is definitely not intended. What OSX version are you using? Also, what happens if you attempt to install one of the osx ARM wheels directly? e.g.
or for OSX 10.14:
The full list of available pre-built wheels can be found at https://storage.googleapis.com/jax-releases/jax_releases.html |
Ah, just noticed that you mentioned Catalina. It looks like Catalina wheels are not uploaded to PyPI (looking at the list here), but they are in the cloud storage bucket. So you could probably install JAX this way, assuming the
|
Hey Jake! My bad there, I wrote Catalina when I meant Sonoma (14.1). |
Since I've now established that I'm on 14.1, I went ahead and tried the direct wheel install. It fails as follows, even though the OS version is correct:
Similar result for the ARM wheel. |
I just tried locally on my mac (running OSX Sonoma 14.2 and Python 3.9) and the |
The fact that If this is the problem on your system, then |
This replicates my original experience: it tries every version of jax, until it happily installs 2.10.0:
This is Python 3.11.5 |
So
|
Ah, I'm stumped as to why pip is treating that jaxlib wheel as being incompatible with your platform. That's the one that should work for you, if you're on OSX Sonoma with Python 3.11. |
What version of |
23.3.2. I did a pip upgrade just to be sure. |
Well, like I said, I'm stumped. Unfortunately pip doesn't offer much visibilty into why it considers any particular wheel file incompatible with the current system, so all we can do is guess. If you do Apple-> About This Mac, what does it say for the Chip? |
OK, cool. There must be something up with my system. Thanks for checking! (It's an M1 chip, to answer your question) |
To help us get on the same page, can you paste the output of these commands?
|
❯ python --version And then the install attempt ends as before:
|
What about this?
|
Ah, I think you might be hitting this issue: microsoft/onnxruntime#17166 (comment). It seems like if pip is build with an older OSX SDK it may not recognize some tags (the Maybe try the workaround mentioned in that comment? |
So, the
However, the workaround does not result in a good install -- it still settles for 0.2.10. Interestingly, if I simply install via |
Thanks - it looks like I don't think |
This is because |
Ah, got it. Yes, can confirm that |
No worries, this was a very tricky one. Glad it's resolved! Hope we can catch up IRL sometime 😀 |
Description
The instructions for installing Jax on a Mac ARM machine on the Jax website are as follows:
However, when I attempt to run this, pip attempts dozens of older versions, and finally installs version 0.2.10. Is there no way to get version 0.4.x to run on a Mac?
What jax/jaxlib version are you using?
NA
Which accelerator(s) are you using?
CPU
Additional system info?
Python 3.11
NVIDIA GPU info
No response
The text was updated successfully, but these errors were encountered: