Issue with installing jax/jaxlib for Mac OSX (Sonoma v14.5) with M1 chip #22289
-
Hi community, I am new to jax and hope to get some insights into the issue I encountered with installing #!/bin/bash
`which python3.11` -m venv jax_env
source jax_env/bin/activate
pip install jax jaxlib
python -c "import jax" It generated the following screen output:
One can see that the installation was successful but an error occurred when the last line Has anyone else shared similar experience? And if so, how did you resolve the issue? Many thanks in advance 🙏 ! (I found several discussions about the incompatibility between jax and M1 chips before 2022. But to the best of my knowledge, this problem was resolved and jax now officially supports M1 chips.) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
The error message is correct here! As you can see from the installation logs, all of the downloaded wheels have the I usually install Python using the Miniforge installer (make sure you choose the |
Beta Was this translation helpful? Give feedback.
The error message is correct here! As you can see from the installation logs, all of the downloaded wheels have the
x86_64
suffix in their filenames. That means that you're running Python in x86 emulator mode on your machine. To use JAX, you'll need to install an ARM build of Python, and as an added benefit all of your Python code will run faster!I usually install Python using the Miniforge installer (make sure you choose the
arm64
version!), but there are other options.