Traceback (most recent call last):
File “”, line 1, in
File “/usr/local/lib/python3.5/dist-packages/torch/init.py”, line 80, in
from torch._C import *
ImportError: /usr/local/lib/python3.5/dist-packages/torch/lib/libshm.so: undefined symbol: _ZTI24THRefcountedMapAllocator
I have tried to reinstall pytorch several times, but it doesn’t work.
maybe try looking for any places that this may exist:
sudo find / -name “libshm.so”
and delete any folders with torch.
Another option is to create a virtual env with conda. It works well. Here is a good guide. But basically, it’s three commands (after installing conda of course) - assuming you wanted python 3.6 and cuda 8:
For your information, I use default python3 from ubuntu and I try to avoid install anaconda because it will crash my other program (library installation and environment, need more time to adjust the library in anaconda python)
So based on your answer, the error is caused by last installation pytorch ?