conda 删除原来虚拟环境中的pytorch1.7.1版本(conda指令删除)后,再次进入虚拟环境查看不到pytorch,再次conda下载pytorch1.6,报错

conda 删除原来虚拟环境中的pytorch1.7.1版本(conda指令删除)后,再次进入虚拟环境查看不到pytorch,再次conda下载pytorch1.6,报错如下

\ "By downloading and using the CUDA Toolkit conda packages, you accept the terms and conditions of the CUDA End User License Agreement (EULA): https://docs.nvidia.com/cuda/eula/index.html%22

done

img

  • 关于该问题,我找了一篇非常好的博客,你可以看看是否有帮助,链接:Pytorch(cuda9.0 cudnn7.05 python2.7 conda)离线安装
  • 除此之外, 这篇博客: anaconda 搭建 pytorch 环境:conda 和 whl 两种方式中的 1. CUDA 版本 部分也许能够解决你的问题, 你可以仔细阅读以下内容或跳转源博客中阅读:
  • pytorch 的版本要对 CUDA 的版本一致。

    • 我们应该选择与 nvcc -V 对应的 pytorch 版本。

      在这里插入图片描述

    • nvcc -Vnvidia-smi 显示的CUDA Version不一致:

      CUDA 有 driver apiruntime api,driver api 依赖NVIDIA驱动,版本由nvidia-smi查看。runtime api 是软件运行所需要的,版本由 nvcc -V查看。通常,driver api 的版本能向下兼容 runtime api 的版本,一般driver api 版本 >= runtime api 版本即可。