-
Notifications
You must be signed in to change notification settings - Fork 344
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
Jax install error on Mac M1 #1929
Comments
On M1 mac, it's possible to install jax via conda (really jaxlib is the issue but you can see arm64 here), where there are compatible installations for M1. Would that be a workable solution for your team? Secondarily, on M1 Mac it's important to use a native version of Python (arm64), which can be installed via the appropriate miniconda/miniforge installer. |
According to this issue jax-ml/jax#5501 there are m1 (arm64) wheels on pypi, so I would ensure native versions of python are being used |
Thanks so much for the pointers @adamgayoso , it seems I need to look into this more. :) |
Alright, so thank you so much for the thorough answer! We were in fact running an non-arm64 python install. The correct python install, with a simple pip install of Someone on my team told me that the latest version 0.20.1 threw some sort of error related to jax, but unfortunately I don't have the details at this time. If I figure out that there is a real issue there, I will reopen this. Thanks again! |
Hello, I'm having this same issue - running anaconda3 on an M1 mac. How did you resolve this? |
Maybe try this link to install miniconda? https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-arm64.sh To figure out what you've got, type |
Sorry for delayed response - but this did the trick. Thanks! |
This is not your bug, it's a Jax bug here:
jax-ml/jax#7237
BUT... it's preventing some people in our group from using
scvi-tools
versions since jax was made a requirement. Our work-issued laptops are Mac M1, and so we cannotpip install scvi-tools
anymore due to the Jax requirement.Is it possible to make Jax an install option? And not an actual requirement? We don't want to use Jax ourselves.
pip install scvi-tools
Versions:
The text was updated successfully, but these errors were encountered: