-
Notifications
You must be signed in to change notification settings - Fork 25.1k
Closed
Labels
high prioritymodule: binariesAnything related to official binaries that we release to usersAnything related to official binaries that we release to usersmodule: buildBuild system issuesBuild system issuestriagedThis issue has been looked at a team member, and triaged and prioritized into an appropriate moduleThis issue has been looked at a team member, and triaged and prioritized into an appropriate module
Description
🐛 Bug
I tried to install PyTorch, but I can't use it. It can't link dynamic library libomp.dylib
To Reproduce
Steps to reproduce the behavior:
- pipenv install torch torchvision
from torch.utils.data import Dataset
Traceback (most recent call last):
File "/Users/kaspersapala/Documents/Airly/new-pollution-forecast/Datasets/__init__.py", line 3, in <module>
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 <module>
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
Expected behavior
Being able to use and import PyTorch
Environment
- PyTorch Version (e.g., 1.0): 1.1.0
- OS (e.g., Linux): Mac OS Mojave
- How you installed PyTorch (
conda
,pip
, source): pipenv - Python version: 3.7.1
airalcorn2, eidelen, xelibrion, egcode, grehce and 26 more
Metadata
Metadata
Assignees
Labels
high prioritymodule: binariesAnything related to official binaries that we release to usersAnything related to official binaries that we release to usersmodule: buildBuild system issuesBuild system issuestriagedThis issue has been looked at a team member, and triaged and prioritized into an appropriate moduleThis issue has been looked at a team member, and triaged and prioritized into an appropriate module