Traceback (most recent call last): ? File "train.py", line 3, in <module> ??? import torch ? File "/home/aita/anaconda3/envs/proGCN2/lib/python3.6/site-packages/torch/__init__.py", line 190, in <module> ??? from torch._C import * ImportError: /home/aita/anaconda3/envs/proGCN2/lib/python3.6/site-packages/torch/lib/libtorch_python.so: undefined symbol: PySlice_Unpack
Due to the keyboard issue, I would have to use English to explain the above bug.
The full bug is shown above in red color.
Reason:
Your current python version is too low.
Mine:?????????????????? Python 3.6.0,??????? Pytorch 1.7.0,??????????? CUDA 11.0
Solution:
conda install python==3.6.2
Dont worry about the currently stored python version, the above command will overwirte the previsous python version. That command works perfectly well.
|