Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to import 1.1 when installing with pip #20118

Closed
mdlockyer opened this issue May 4, 2019 · 5 comments
Closed

Unable to import 1.1 when installing with pip #20118

mdlockyer opened this issue May 4, 2019 · 5 comments

Comments

@mdlockyer
Copy link

馃悰 Bug

It seems there is an issue with the pip installation of 1.1. After upgrading, I get an error when calling import torch.

To Reproduce

Steps to reproduce the behavior:

  1. Install torch==1.1.0 with pip

Traceback (most recent call last):
File "", line 1, in
File "/anaconda3/envs/torch/lib/python3.6/site-packages/torch/init.py", line 79, in
from torch._C import *
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
Referenced from: /anaconda3/envs/torch/lib/python3.6/site-packages/torch/lib/libshm.dylib
Reason: image not found

Expected behavior

The torch package should import...

Environment

PyTorch version: N/A
Is debug build: N/A
CUDA used to build PyTorch: N/A

OS: Mac OSX 10.14.4
GCC version: Could not collect
CMake version: Could not collect

Python version: 3.6
Is CUDA available: N/A
CUDA runtime version: Could not collect
GPU models and configuration: Could not collect
Nvidia driver version: Could not collect
cuDNN version: Could not collect

Versions of relevant libraries:
[pip3] numpy==1.16.3
[pip3] torch==1.1.0
[conda] blas 1.0 mkl
[conda] mkl 2019.3 199
[conda] mkl-service 1.1.2 py37hfbe908c_5
[conda] mkl_fft 1.0.10 py37h5e564d8_0
[conda] mkl_random 1.0.2 py37h27c97d8_0

@codexetreme
Copy link
Contributor

I have the same issue when running with python 3.6, if you use 3.7 however, it works. I haven't checked for other versions though

@kaszperro
Copy link

Probably duplicate of #20030
try brew install libomp

@mdlockyer
Copy link
Author

@kaszperro definitely is a duplicate. Looks like that issue was reopened. Installing libomp does indeed work as a quick-fix for this.

@izdeby
Copy link
Contributor

izdeby commented May 6, 2019

dup of #20030. lets discuss there

@izdeby izdeby closed this as completed May 6, 2019
@soumith
Copy link
Member

soumith commented Jun 21, 2019

uploaded new binaries that remove dependency on libomp.dylib

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants