Skip to content
This repository has been archived by the owner on Aug 18, 2021. It is now read-only.

can't import torch #131

Closed
Little-Pr1nce opened this issue May 16, 2019 · 2 comments
Closed

can't import torch #131

Little-Pr1nce opened this issue May 16, 2019 · 2 comments

Comments

@Little-Pr1nce
Copy link

macbook pro
using " pip install torch torchvison" to install pytorch
but when i run the project it shows:
ImportError: dlopen(/Users/little-prince/Documents/Graduation_Project/venv/lib/python3.6/site-packages/torch/_C.cpython-36m-darwin.so, 9): Library not loaded: /usr/local/opt/libomp/lib/libomp.dylib
Referenced from: /Users/little-prince/Documents/Graduation_Project/venv/lib/python3.6/site-packages/torch/lib/libshm.dylib
Reason: image not found

how do i deal with it

@jiasureZ
Copy link

jiasureZ commented Jun 3, 2019

Have you solved it? Can you tell me how to do?

@jiasureZ
Copy link

jiasureZ commented Jun 3, 2019

brew install libomp solves the problem.

@spro spro closed this as completed Sep 13, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants