Generally speaking, SIGILL error occurs when the binary contains instructions not supported by CPU, because the installation method of the official website is binary, that is to say, the official binary does not match my CPU (AMD instead of Intel), so it needs to be installed from source, as follows
git clone https://github.com/pytorch/pytorch

sudo conda uninstall pytorch torchvision -c soumith

sudo python3 setup.py install