Python 3.6.8 |Anaconda, Inc.| (default, Dec 30 2018, 01:22:34)
[GCC 7.3.0] on linux
Type “help”, “copyright”, “credits” or “license” for more information.
import torch
Traceback (most recent call last):
File “”, line 1, in
File “/var/storage/shared/titanv/sys/jobs/application_1545092406025_20974/anaconda3/envs/python36/lib/python3.6/site-packages/torch/init.py”, line 84, in
from torch._C import *
ImportError: /var/storage/shared/titanv/sys/jobs/application_1545092406025_20974/anaconda3/envs/python36/lib/python3.6/site-packages/torch/lib/libtorch.so.1: undefined symbol: _ZNK2at11TypeDefault19tensorWithAllocatorEN3c108ArrayRefIlEEPNS1_9AllocatorE
##########################################################################
I install pytorch in a new conda env by conda. I meet this problem when I import torch in python, as above. How can i solve this problem? Thanks