pytorch官网:https://pytorch.org/
pip3 install torch torchvision -i https://pypi.mirrors.ustc.edu.cn/simple
后面的是镜像,当然也可以采用其他源,网上很多,在这里不再陈述。