Pytorch 安装 apex 疑难杂症解决方案

RuntimeError: Cuda extensions are being compiled with a version of Cuda that does not match the version used to compile Pytorch binaries.  Pytorch binaries were compiled with Cuda 9.0.176.

从描述可以看出是cudatoolkit与pytorch.cuda的版本不匹配问题,看了一下自己的cudatoolkit==10.0,pytorch.cuda却是9.0.176

所以重新安装了pytorch,发现pytorch.cuda版本没变。

去网上搜方案,一堆都是去官网找10.0的pytorch.cuda版本,但是官网上并没有找到

Pytorch 安装 apex 疑难杂症解决方案_第1张图片

还发现了conda安装的命令

Pytorch 安装 apex 疑难杂症解决方案_第2张图片 

但是我是pip安装的,很头疼,接着搜也没搜到可行答案,回头接着去官网找,发现了

Pytorch 安装 apex 疑难杂症解决方案_第3张图片 

去cuda10的那个网址

https://download.pytorch.org/whl/cu100/torch_stable.html

终于找到了pip安装torch1.1-cuda100-python3.5的 torch文件

下载下来安装 之后,再安装apex,终于成功了

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