【深度学习】 为Tesla K40c(显卡算力小于3.5)安装pytorch(要求显卡算力3.7以上)笔记

1. 安装原因

因为我的显卡算力是3.5,但pytorch支持最低的算力是3.7。
所以直接在pytorch官网下载的pytorch用不了。

    Found GPU0 Tesla K40c which is of cuda capability 3.5.
    PyTorch no longer supports this GPU because it is too old.
    The minimum cuda capability supported by this library is 3.7.
    

2. 解决方法

目前解决方法:在GitHub上下载别人专门为old GPU编译的pytorch,但出现新的问题:安装一些包的时候,会出现安装错误,等重启后再安装看看行不行。

pip安装其他包错误原因可能是参考博客是安装pytorch1.3.1,我觉得1.3功能可能有点少,所以安装的是torch-1.11.0+cu102-cp37-cp37m-linux_x86_64

pip安装error

ERROR: Could not install packages due to an OSError: ('Received response with content-encoding: gzip, but failed to decode it.', error('Error -3 while decompressing data: incorrect header check'))

有知道怎么解决上面这个错误的,可以教一下我吗
在这里插入图片描述

你可能感兴趣的:(深度学习,pytorch,python)