Illegal instruction on Mac 21.5" Mid-2010

username: antoon
cooked: <p>Hi, I am trying to get PyTorch working on my iMac 21.5" running OS X 10.13.6 on an Intel i3-540 CPU.<br>
I tried installing it using conda, starting from version 1.4 and going backward to 0.4.1 but I can’t get it working. Could you help me? Thanks.</p>
<pre><code class="lang-auto">$ python
Python 3.7.6 (default, Jan  8 2020, 13:42:34) 
[Clang 4.0.1 (tags/RELEASE_401/final)] :: Anaconda, Inc. on darwin
Type "help", "copyright", "credits" or "license" for more information.
&gt;&gt;&gt; import torch
Illegal instruction: 4
</code></pre>

username: Tony-Y
cooked: <aside class="onebox githubissue">
  <header class="source">
      <a href="https://github.com/pytorch/pytorch/issues/27627#issuecomment-602197936" target="_blank" rel="nofollow noopener">github.com/pytorch/pytorch</a>
  </header>
  <article class="onebox-body">
    <div class="github-row">
  <div class="github-icon-container" title="Issue">
	  <svg width="60" height="60" class="github-icon" viewbox="0 0 14 16" aria-hidden="true"><path d="M7 2.3c3.14 0 5.7 2.56 5.7 5.7s-2.56 5.7-5.7 5.7A5.71 5.71 0 0 1 1.3 8c0-3.14 2.56-5.7 5.7-5.7zM7 1C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 7-7-3.14-7-7-7zm1 3H6v5h2V4zm0 6H6v2h2v-2z"></path></svg>
  </div>

  <div class="github-info-container">
    <h4>
      <a href="https://github.com/pytorch/pytorch/issues/27627#issuecomment-602197936" target="_blank" rel="nofollow noopener">Illegal instruction 4 in 1.3, OSX &amp; GPU</a>
    </h4>

    <div class="github-info">
      <div class="date">
        opened <span class="discourse-local-date" data-format="ll" data-date="2019-10-09" data-time="19:57:08" data-timezone="UTC">07:57PM - 09 Oct 19 UTC</span>
      </div>

        <div class="date">
          closed <span class="discourse-local-date" data-format="ll" data-date="2019-11-11" data-time="18:14:39" data-timezone="UTC">06:14PM - 11 Nov 19 UTC</span>
        </div>

      <div class="user">
        <a href="https://github.com/elbamos" target="_blank" rel="nofollow noopener">
          <img alt="elbamos" src="https://avatars2.githubusercontent.com/u/10103420?v=4" class="onebox-avatar-inline" width="20" height="20">
          elbamos
        </a>
      </div>
    </div>
  </div>
</div>

<div class="github-row">
  <p class="github-content">🐛 Bug
Upon import torch, I get Illegal instruction 4.
This issue appears to have arisen sometime after 1.2 was released, but it...</p>
</div>

<div class="labels">
    <span style="display:inline-block;margin-top:2px;background-color: #B8B8B8;padding: 2px;border-radius: 4px;color: #fff;margin-left: 3px;">high priority</span>
    <span style="display:inline-block;margin-top:2px;background-color: #B8B8B8;padding: 2px;border-radius: 4px;color: #fff;margin-left: 3px;">module: cpu</span>
    <span style="display:inline-block;margin-top:2px;background-color: #B8B8B8;padding: 2px;border-radius: 4px;color: #fff;margin-left: 3px;">module: named tensor</span>
    <span style="display:inline-block;margin-top:2px;background-color: #B8B8B8;padding: 2px;border-radius: 4px;color: #fff;margin-left: 3px;">module: osx</span>
    <span style="display:inline-block;margin-top:2px;background-color: #B8B8B8;padding: 2px;border-radius: 4px;color: #fff;margin-left: 3px;">module: third_party</span>
    <span style="display:inline-block;margin-top:2px;background-color: #B8B8B8;padding: 2px;border-radius: 4px;color: #fff;margin-left: 3px;">module: vectorization</span>
    <span style="display:inline-block;margin-top:2px;background-color: #B8B8B8;padding: 2px;border-radius: 4px;color: #fff;margin-left: 3px;">needs reproduction</span>
    <span style="display:inline-block;margin-top:2px;background-color: #B8B8B8;padding: 2px;border-radius: 4px;color: #fff;margin-left: 3px;">topic: crash</span>
    <span style="display:inline-block;margin-top:2px;background-color: #B8B8B8;padding: 2px;border-radius: 4px;color: #fff;margin-left: 3px;">triaged</span>
</div>

  </article>
  <div class="onebox-metadata">
    
    
  </div>
  <div style="clear: both"></div>
</aside>


username: antoon
cooked: <p>I already wrote there too. Still no replies</p>

username: Tony-Y
cooked: <p>Try a nightly build:</p>
<pre><code class="lang-auto">conda install pytorch torchvision -c pytorch-nightly
</code></pre>

username: antoon
cooked: <p>I tried it after looking around Github repository issues… but it didn’t work either</p>

username: Tony-Y
cooked: <p><a href="https://github.com/pytorch/pytorch/issues/29967#issuecomment-555910924" rel="nofollow noopener">This comment</a> suggests:</p>
<pre><code class="lang-auto">conda install pytorch-nightly -c pytorch
</code></pre>
<p>Did you do this?</p>