# zsh: illegal hardware instruction python -m prodigy stats

**URL:** https://support.prodi.gy/t/zsh-illegal-hardware-instruction-python-m-prodigy-stats/5749
**Category:** Getting Started
**Tags:** solved, install, mac
**Created:** [June 27, 2022, 7:42pm UTC](https://support.prodi.gy/t/zsh-illegal-hardware-instruction-python-m-prodigy-stats/5749 "2022-06-27T19:42:25Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![c00lcoder](https://sea2.discourse-cdn.com/flex020/user_avatar/support.prodi.gy/c00lcoder/32/2426_2.png) [@c00lcoder](https://support.prodi.gy/u/c00lcoder)
#### Post date: [June 27, 2022, 7:42pm UTC](https://support.prodi.gy/t/zsh-illegal-hardware-instruction-python-m-prodigy-stats/5749/1 "2022-06-27T19:42:25Z")

</div>

Hi I just purchased prodi.gy and am getting this error.  
when I run this  
**python -m prodigy stats or python3 -m prodigy stats**

I get this error  
**zsh: illegal hardware instruction python -m prodigy stats**

when I run any command, i get the above error. commands such as this  
**prodigy image.manual unique1 ./Users/dai/Unique --label FACE**

has anyone come across this issue? I just purchased and hope to be able to get it running on my M1 Mac. When it says illegal hardware, I wonder if it because of the mac version?

---

<div class="post-metadata">

### Author: ![ryanwesslen](https://sea2.discourse-cdn.com/flex020/user_avatar/support.prodi.gy/ryanwesslen/32/2969_2.png) [@ryanwesslen](https://support.prodi.gy/u/ryanwesslen)
#### Post date: [June 28, 2022, 1:22pm UTC](https://support.prodi.gy/t/zsh-illegal-hardware-instruction-python-m-prodigy-stats/5749/2 "2022-06-28T13:22:16Z")

</div>

Hi @c00lcoder !

Thanks for your question.

Yes - this is likely due to a conflict between native (arm64) and emulation (x86\_64) architecture versions.

In a clean environment, can you prefix your `python -m pip install` command with `arch -arm64`?

Alternatively, you can run the `arch` command and can switch back and forth between arm64 (Mac) and x86\_64 (Intel), see [this blog post for more details](https://vineethbharadwaj.medium.com/m1-mac-switching-terminal-between-x86-64-and-arm64-e45f324184d9).

Let us know if you're still having issues.

---

<div class="post-metadata">

### Author: ![c00lcoder](https://sea2.discourse-cdn.com/flex020/user_avatar/support.prodi.gy/c00lcoder/32/2426_2.png) [@c00lcoder](https://support.prodi.gy/u/c00lcoder)
#### Post date: [July 1, 2022, 2:51pm UTC](https://support.prodi.gy/t/zsh-illegal-hardware-instruction-python-m-prodigy-stats/5749/3 "2022-07-01T14:51:34Z")

</div>

I ended up installing on a linux VM for now. I'll try on MAC again later and provide an update

---

<div class="post-metadata">

### Author: ![c00lcoder](https://sea2.discourse-cdn.com/flex020/user_avatar/support.prodi.gy/c00lcoder/32/2426_2.png) [@c00lcoder](https://support.prodi.gy/u/c00lcoder)
#### Post date: [July 5, 2022, 2:03am UTC](https://support.prodi.gy/t/zsh-illegal-hardware-instruction-python-m-prodigy-stats/5749/4 "2022-07-05T02:03:07Z")

</div>

Thank you Ryan. I was able to switch from arm64 to x86\_64 and get it to work.
