pytorch使用清华源下载
时间: 2023-09-21 19:11:02 浏览: 105
您可以通过以下步骤使用清华源下载pytorch:
1. 打开清华源的PyTorch页面:https://mirrors.tuna.tsinghua.edu.cn/help/pytorch/
2. 根据您的需求选择一个合适的版本,比如PyTorch 1.8.1,然后点击其对应的链接。
3. 在弹出的页面中,找到你需要的下载链接,比如Linux系统的CPU版本:https://mirrors.tuna.tsinghua.edu.cn/pytorch/linux/cpu/py3.9/torch-1.8.1%2Bcpu-cp39-cp39-linux_x86_64.whl
4. 复制该链接,并在终端中使用pip命令下载,比如:
```
pip install https://mirrors.tuna.tsinghua.edu.cn/pytorch/linux/cpu/py3.9/torch-1.8.1%2Bcpu-cp39-cp39-linux_x86_64.whl
```
5. 等待下载和安装完成即可。
注意:如果您已经使用了其他源下载过pytorch,建议先卸载再使用清华源下载,以避免出现问题。
阅读全文
相关推荐









