安装旧的torch需要--将find-index标记添加到pip,如torch 1.5和cuda 10.1:pip install torch==1.5.0+cu101 torchvision==0.6.0+cu101 -f https://download.pytorch.org/whl/torch_stable.html 参考:https://pytorch.org/get-started/previous-versions/