找到网页https://download.pytorch.org/whl/torch/

选择自己对应的版本下载

然后打开命令窗口

cd /home/chentingting/下载

pip install whl "torch-1.13.0+cu116-cp311-cp311-linux_x86_64.whl"

等待,安装完成即可

遇到问题,显示

WARNING: Requirement 'whltorch-1.12.0+cu113-cp39-cp39-linux_x86_64.whl' looks like a filename, but the file does not exist

文件路径,或者名称不对

ERROR: torch-1.12.0+cu113-cp39-cp39-linux_x86_64.whl is not a supported wheel on this platform.

版本是否完全匹配,我这个是python3.11所以错误,找到完全对应的版本才行

干巴爹

Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐