I downgraded pytorch to 0.1.10. Then, there is no problem.
Also, I found the same question on

  
      stackoverflow.com
  
  
      
    
  

  undefined symbol: PySlice_AdjustIndices when importing PyTorch 1



  python, anaconda, pytorch



  asked by
  
  
    Monica Heddneck
  
  on 09:12PM - 29 Mar 17 UTC


  
  
    
    
  
  


He had the same problem.
The output is below.
linux-vdso.so.1 =>  (0x00007ffc94684000)
libshm.so => /home/sypark/anaconda3/lib/python3.6/site-packages/torch/lib/libshm.so (0x00007f9936bfa000)
libcudart.so.8.0 => /home/sypark/anaconda3/lib/python3.6/site-packages/torch/lib/libcudart.so.8.0 (0x00007f9936991000)
libcudnn.so.5 => /home/sypark/anaconda3/lib/python3.6/site-packages/torch/lib/libcudnn.so.5 (0x00007f9931bbb000)
libpython3.6m.so.1.0 => /home/sypark/anaconda3/lib/python3.6/site-packages/torch/…/…/…/libpython3.6m.so.1.0 (0x00007f99316b6000)
libTH.so.1 => /home/sypark/anaconda3/lib/python3.6/site-packages/torch/lib/libTH.so.1 (0x00007f9931106000)
libTHS.so.1 => /home/sypark/anaconda3/lib/python3.6/site-packages/torch/lib/libTHS.so.1 (0x00007f9930ed3000)
libTHPP.so.1 => /home/sypark/anaconda3/lib/python3.6/site-packages/torch/lib/libTHPP.so.1 (0x00007f9930b05000)
libTHNN.so.1 => /home/sypark/anaconda3/lib/python3.6/site-packages/torch/lib/libTHNN.so.1 (0x00007f9930800000)
libTHC.so.1 => /home/sypark/anaconda3/lib/python3.6/site-packages/torch/lib/libTHC.so.1 (0x00007f9922a49000)
libTHCS.so.1 => /home/sypark/anaconda3/lib/python3.6/site-packages/torch/lib/libTHCS.so.1 (0x00007f992282f000)
libTHCUNN.so.1 => /home/sypark/anaconda3/lib/python3.6/site-packages/torch/lib/libTHCUNN.so.1 (0x00007f991694d000)
libgcc_s.so.1 => /home/sypark/anaconda3/lib/python3.6/site-packages/torch/…/…/…/libgcc_s.so.1 (0x00007f9916737000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f99164fe000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f9916134000)
librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f9915f2c000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f9915c22000)
/lib64/ld-linux-x86-64.so.2 (0x000055f3b1b3f000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f9915a1e000)
libstdc++.so.6 => /home/sypark/anaconda3/lib/python3.6/site-packages/torch/lib/…/…/…/…/libstdc++.so.6 (0x00007f9915708000)
libutil.so.1 => /lib/x86_64-linux-gnu/libutil.so.1 (0x00007f9915504000)
libmkl_intel_lp64.so => /home/sypark/anaconda3/lib/python3.6/site-packages/torch/lib/…/…/…/…/libmkl_intel_lp64.so (0x00007f9914ae2000)
libmkl_intel_thread.so => /home/sypark/anaconda3/lib/python3.6/site-packages/torch/lib/…/…/…/…/libmkl_intel_thread.so (0x00007f991307c000)
libmkl_core.so => /home/sypark/anaconda3/lib/python3.6/site-packages/torch/lib/…/…/…/…/libmkl_core.so (0x00007f9911584000)
libiomp5.so => /home/sypark/anaconda3/lib/python3.6/site-packages/torch/lib/…/…/…/…/libiomp5.so (0x00007f99111da000)
libgomp.so.1 => /home/sypark/anaconda3/lib/python3.6/site-packages/torch/lib/…/…/…/…/libgomp.so.1 (0x00007f9910fca000)
libcublas.so.8.0 => /home/sypark/anaconda3/lib/python3.6/site-packages/torch/lib/libcublas.so.8.0 (0x00007f990e617000)
libcurand.so.8.0 => /home/sypark/anaconda3/lib/python3.6/site-packages/torch/lib/libcurand.so.8.0 (0x00007f990a6ac000)
libcusparse.so.8.0 => /home/sypark/anaconda3/lib/python3.6/site-packages/torch/lib/libcusparse.so.8.0 (0x00007f9907b99000)