The message is below:
[martin@A08-R32-I196-2-FZ1RLP2 anaconda3]$ ipython
Python 3.6.5 |Anaconda, Inc.| (default, Apr 29 2018, 16:14:56)
Type 'copyright', 'credits' or 'license' for more information
IPython 6.4.0 -- An enhanced Interactive Python. Type '?' for help.

In [1]: import torch
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-1-eb42ca6e4af3> in <module>()
----> 1 import torch

~/anaconda3/lib/python3.6/site-packages/torch/__init__.py in <module>()
     78     pass
     79
---> 80 from torch._C import *
     81
     82 __all__ += [name for name in dir(_C)

ImportError: /usr/lib64/libstdc++.so.6: version `CXXABI_1.3.8' not found (required by /home/martin/anaconda3/lib/python3.6/site-packages/torch/lib/libcaffe2.so)

In [2]:

I just installed Pytorch using the command:
conda install pytorch torchvision -c pytorch
What’s the right way to fix? My OS is CentOS 7