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
pytorch 的版本要对 CUDA 的版本一致。
我们应该选择与 nvcc -V 对应的 pytorch 版本。
nvcc -V
和 nvidia-smi
显示的CUDA Version不一致:
CUDA 有 driver api
和 runtime api
,driver api 依赖NVIDIA驱动,版本由nvidia-smi查看。runtime api 是软件运行所需要的,版本由 nvcc -V查看。通常,driver api 的版本能向下兼容 runtime api 的版本,一般driver api 版本 >= runtime api 版本即可。