MacOS Silicon M1 Chip - Installing Napari #5878
Replies: 2 comments 6 replies
-
Hi @chrislearns sorry to hear you had troubles with napari on your M1! Basically, conda (or even better mamba) install from conda-forge channel should JustWork(tm). For pip, you need to install a Qt backend first, like pyqt from conda-forge and then Was there a specific package you needed that required using Rosetta2 emulation (x86 environment on arm64)? |
Beta Was this translation helpful? Give feedback.
-
@psobolewskiPhD no worries at all, I was just excited to have it working! So I believe I tried it and specifically I tried that section you mentioned with "Choose a different backend" which is how I arrived at Step 3, ultimately, but evenso I kept getting this error:
So that was when I tried looking for a solution and found what became Step 1 from above. |
Beta Was this translation helpful? Give feedback.
-
Let me begin by saying I apologize if this is the wrong place for this. If there is a better place please let me know and I will move it.
I spent way too long trying to get napari to run on my 2021 M1 MacBook Pro, so I wanted to save the next poor soul the struggle. I have reproducible, successful steps below. Note, I am by no means an expert in this realm and all my software dev experience is in Swift/the Apple ecosystem. If anyone has suggestions for a better way to do this, please (a) comment below, (b) make sure it is reproducible, and (c) please explain your steps and any sources you have as I have done. I'm sure any good dev in this field may understand what you may type, but this may be a good resource for some less tech-savvy individuals.
MY STEPS
Step 1 - Install Anacaonda:
Step 2 - Setup x86 env: Source
NOTE: My env is named
someRandomEnv
and you should change it to whatever you would like$ CONDA_SUBDIR=osx-64 conda create -n someRandomEnv python=3.9
$ conda activate someRandomEnv
$ conda config --env --set subdir osx-64
Step 3 - Install pyqt separately: Source
Install pyqt5
$ pip install pyqt5
Step 4 - Install Napari: Source
$ python -m pip install "napari[all]"
Step 5 - Test:
$ napari
Beta Was this translation helpful? Give feedback.
All reactions