代码如下,希望对你有帮助。 pip install -i https://pypi.tuna.tsinghua.edu.cn/simple torchvision 建议在Pycharm里点终端下载,这样就确保能使用。