<h2 dir="auto"><g-emoji class="g-emoji" alias="bug" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f41b.png">🐛</g-emoji> Bug</h2>
<p dir="auto">It seems there is an issue with the pip installation of 1.1. After upgrading, I get an error when calling <code class="notranslate">import torch</code>.</p>
<h2 dir="auto">To Reproduce</h2>
<p dir="auto">Steps to reproduce the behavior:</p>
<ol dir="auto">
<li>Install torch==1.1.0 with pip</li>
</ol>
<p dir="auto">Traceback (most recent call last):<br>
File "", line 1, in <br>
File "/anaconda3/envs/torch/lib/python3.6/site-packages/torch/<strong>init</strong>.py", line 79, in <br>
from torch._C import *<br>
ImportError: dlopen(/anaconda3/envs/torch/lib/python3.6/site-packages/torch/_C.cpython-36m-darwin.so, 9): Library not loaded: /usr/local/opt/libomp/lib/libomp.dylib<br>
Referenced from: /anaconda3/envs/torch/lib/python3.6/site-packages/torch/lib/libshm.dylib<br>
Reason: image not found</p>
<h2 dir="auto">Expected behavior</h2>
<p dir="auto">The torch package should import...</p>
<h2 dir="auto">Environment</h2>
<p dir="auto">PyTorch version: N/A<br>
Is debug build: N/A<br>
CUDA used to build PyTorch: N/A</p>
<p dir="auto">OS: Mac OSX 10.14.4<br>
GCC version: Could not collect<br>
CMake version: Could not collect</p>
<p dir="auto">Python version: 3.6<br>
Is CUDA available: N/A<br>
CUDA runtime version: Could not collect<br>
GPU models and configuration: Could not collect<br>
Nvidia driver version: Could not collect<br>
cuDNN version: Could not collect</p>
<p dir="auto">Versions of relevant libraries:<br>
[pip3] numpy==1.16.3<br>
[pip3] torch==1.1.0<br>
[conda] blas                      1.0                         mkl<br>
[conda] mkl                       2019.3                      199<br>
[conda] mkl-service               1.1.2            py37hfbe908c_5<br>
[conda] mkl_fft                   1.0.10           py37h5e564d8_0<br>
[conda] mkl_random                1.0.2            py37h27c97d8_0</p>
<h2 dir="auto"><g-emoji class="g-emoji" alias="bug" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f41b.png">🐛</g-emoji> Bug</h2>
<p dir="auto">I tried to install PyTorch, but I can't use it. It can't link dynamic library libomp.dylib</p>
<h2 dir="auto">To Reproduce</h2>
<p dir="auto">Steps to reproduce the behavior:</p>
<ol dir="auto">
<li>pipenv install torch torchvision</li>
<li><code class="notranslate">from torch.utils.data import Dataset</code></li>
</ol>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Traceback (most recent call last):
  File &quot;/Users/kaspersapala/Documents/Airly/new-pollution-forecast/Datasets/__init__.py&quot;, line 3, in &lt;module&gt;
    from torch.utils.data import Dataset
  File &quot;/Users/kaspersapala/.local/share/virtualenvs/new-pollution-forecast-BSetKF9E/lib/python3.7/site-packages/torch/__init__.py&quot;, line 79, in &lt;module&gt;
    from torch._C import *
ImportError: dlopen(/Users/kaspersapala/.local/share/virtualenvs/new-pollution-forecast-BSetKF9E/lib/python3.7/site-packages/torch/_C.cpython-37m-darwin.so, 9): Library not loaded: /usr/local/opt/libomp/lib/libomp.dylib
  Referenced from: /Users/kaspersapala/.local/share/virtualenvs/new-pollution-forecast-BSetKF9E/lib/python3.7/site-packages/torch/lib/libshm.dylib
  Reason: image not found"><pre class="notranslate"><code class="notranslate">Traceback (most recent call last):
  File "/Users/kaspersapala/Documents/Airly/new-pollution-forecast/Datasets/__init__.py", line 3, in &lt;module&gt;
    from torch.utils.data import Dataset
  File "/Users/kaspersapala/.local/share/virtualenvs/new-pollution-forecast-BSetKF9E/lib/python3.7/site-packages/torch/__init__.py", line 79, in &lt;module&gt;
    from torch._C import *
ImportError: dlopen(/Users/kaspersapala/.local/share/virtualenvs/new-pollution-forecast-BSetKF9E/lib/python3.7/site-packages/torch/_C.cpython-37m-darwin.so, 9): Library not loaded: /usr/local/opt/libomp/lib/libomp.dylib
  Referenced from: /Users/kaspersapala/.local/share/virtualenvs/new-pollution-forecast-BSetKF9E/lib/python3.7/site-packages/torch/lib/libshm.dylib
  Reason: image not found
</code></pre></div>
<h2 dir="auto">Expected behavior</h2>
<p dir="auto">Being able to use and import PyTorch</p>
<h2 dir="auto">Environment</h2>
<ul dir="auto">
<li>PyTorch Version (e.g., 1.0): 1.1.0</li>
<li>OS (e.g., Linux): Mac OS Mojave</li>
<li>How you installed PyTorch (<code class="notranslate">conda</code>, <code class="notranslate">pip</code>, source): pipenv</li>
<li>Python version: 3.7.1</li>
</ul>