使用清华镜像资源,下载速度非常快! 在pycharm中的terminal输入pip install --upgrade torch torchvision -i https://pypi.tuna.tsinghua.edu.cn/simple会直接安装 torch torchvision numpy pillow