I never did. It always gives that error when I install from source. I have noticed that conda installs don’t do this. I wonder why this is so.
lex@lex:~/Documents$ /usr/bin/python -c "import torch"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/local/lib/python2.7/dist-packages/torch/__init__.py", line 53, in <module>
    from torch._C import *
ImportError: /usr/local/lib/python2.7/dist-packages/torch/lib/libgomp.so.1: version `GOMP_4.0' not found (required by /usr/local/lib/python2.7/dist-packages/torch/lib/libTH.so.1)
lex@lex:~/Documents$