title: zsh: illegal hardware instruction python when trying to install github library - due to apple M1 chip?
body: <p>So I'm trying to install the package here: <a href="https://github.com/Technologicat/pydgq/blob/master/README.md" rel="nofollow noreferrer">https://github.com/Technologicat/pydgq/blob/master/README.md</a></p>
  <pre><code>git clone https://github.com/Technologicat/pydgq.git
  cd pydgq
  sudo python setup.py install
  
  (opt) vogtster@Vogtsters-Mini pydgq % cd ..
  (opt) vogtster@Vogtsters-Mini Finite Element % cd pydgq/test 
  (opt) vogtster@Vogtsters-Mini test % python lorenz_example.py 
  zsh: illegal hardware instruction  python lorenz_example.py
  (opt) vogtster@Vogtsters-Mini test % python
  Python 3.7.13 (default, Mar 28 2022, 07:24:34) 
  [Clang 12.0.0 ] :: Anaconda, Inc. on darwin
  Type &quot;help&quot;, &quot;copyright&quot;, &quot;credits&quot; or &quot;license&quot; for more information.
  &gt;&gt;&gt; import pydgq
  zsh: illegal hardware instruction  python
  </code></pre>
  <p>Looking around I found a thread here which this issue was happening for tensorflow: <a href="https://stackoverflow.com/questions/65383338/zsh-illegal-hardware-instruction-python-when-installing-tensorflow-on-macbook">&quot;zsh: illegal hardware instruction python&quot; when installing Tensorflow on macbook pro M1</a></p>
  <p>The only difference is I have a mac-mini with a M1 chip, which makes me believe this is the issue. However, I could not figure out how to resolve this issue to make the code run.</p>
  <p>I suspect somehow I have to run some of these commands with some special flag to make everything work. Any suggestions would be greatly appreciated!</p>
  <p>Perhaps this thread can become a &quot;1 catch all question&quot; of how to resolve this issue in general.</p>
  <p>Thank you</p>