I am facing a similar error. My system is linux.
python: symbol lookup error: /home/samarth/anaconda3/lib/python3.6/site-packages/torch/lib/libtorch_python.so: undefined symbol: PySlice_Unpack
Any suggestions will be highly appreciated. Thanks in advance.