Windows安装cuda toolkit exe文件提示失败,附带解决办法(曲线救国方案)

cuda文件下载地址

最新版本

cuda 11.8.0

问题描述

  • 在Windows上面安装cuda特定版本的时候,系统提示无法下载、,最开始以为是版本问题,结果尝试多个版本都没有办法安装成功,于是想要找一个能够正确安装的方案
    Windows安装cuda toolkit exe文件提示失败,附带解决办法(曲线救国方案)_第1张图片
解决办法(曲线救国)

nvidia官网介绍通过anaconda下载安装

https://docs.nvidia.com/cuda/cuda-installation-guide-microsoft-windows/index.html

anaconda官网
下载了最新版本的anaconda,并且在环境变量中添加conda

或者直接从 anaconda/script 目录下执行以下命令

.\conda.exe install cuda -c nvidia/label/cuda-11.8.0

命令行里面会出现需要下载的组件名,输入Y 后继续(如果不用装,就不必这么麻烦了)

Windows安装cuda toolkit exe文件提示失败,附带解决办法(曲线救国方案)_第2张图片

完整命令行内容

PS C:\ProgramData\anaconda3\Scripts> .\conda.exe install cuda -c nvidia/label/cuda-11.8.0
Collecting package metadata (current_repodata.json): done
Solving environment: done

## Package Plan ##

  environment location: C:\ProgramData\anaconda3

  added / updated specs:
    - cuda


The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    cuda-11.8.0                |                0           1 KB  nvidia/label/cuda-11.8.0
    cuda-cccl-11.8.89          |                0         1.2 MB  nvidia/label/cuda-11.8.0
    cuda-command-line-tools-11.8.0|                0           1 KB  nvidia/label/cuda-11.8.0
    cuda-compiler-11.8.0       |                0           1 KB  nvidia/label/cuda-11.8.0
    cuda-cudart-11.8.89        |                0         1.4 MB  nvidia/label/cuda-11.8.0
    cuda-cudart-dev-11.8.89    |                0         723 KB  nvidia/label/cuda-11.8.0
    cuda-cuobjdump-11.8.86     |                0         3.6 MB  nvidia/label/cuda-11.8.0
    cuda-cupti-11.8.87         |                0        11.5 MB  nvidia/label/cuda-11.8.0
    cuda-cuxxfilt-11.8.86      |                0         165 KB  nvidia/label/cuda-11.8.0
    cuda-demo-suite-11.8.86    |                0         4.7 MB  nvidia/label/cuda-11.8.0
    cuda-documentation-11.8.86 |                0          91 KB  nvidia/label/cuda-11.8.0
    cuda-libraries-11.8.0      |                0           1 KB  nvidia/label/cuda-11.8.0
    cuda-libraries-dev-11.8.0  |                0           1 KB  nvidia/label/cuda-11.8.0
    cuda-memcheck-11.8.86      |                0         183 KB  nvidia/label/cuda-11.8.0
    cuda-nsight-compute-11.8.0 |                0           1 KB  nvidia/label/cuda-11.8.0
    cuda-nvcc-11.8.89          |                0        53.2 MB  nvidia/label/cuda-11.8.0
    cuda-nvdisasm-11.8.86      |                0        48.9 MB  nvidia/label/cuda-11.8.0
    cuda-nvml-dev-11.8.86      |                0          88 KB  nvidia/label/cuda-11.8.0
    cuda-nvprof-11.8.87        |                0         1.5 MB  nvidia/label/cuda-11.8.0
    cuda-nvprune-11.8.86       |                0         152 KB  nvidia/label/cuda-11.8.0
    cuda-nvrtc-11.8.89         |                0        72.1 MB  nvidia/label/cuda-11.8.0
    cuda-nvrtc-dev-11.8.89     |                0        16.1 MB  nvidia/label/cuda-11.8.0
    cuda-nvtx-11.8.86          |                0          43 KB  nvidia/label/cuda-11.8.0
    cuda-nvvp-11.8.87          |                0       113.6 MB  nvidia/label/cuda-11.8.0
    cuda-profiler-api-11.8.86  |                0          21 KB  nvidia/label/cuda-11.8.0
    cuda-runtime-11.8.0        |                0           1 KB  nvidia/label/cuda-11.8.0
    cuda-sanitizer-api-11.8.86 |                0        12.7 MB  nvidia/label/cuda-11.8.0
    cuda-toolkit-11.8.0        |                0           1 KB  nvidia/label/cuda-11.8.0
    cuda-tools-11.8.0          |                0           1 KB  nvidia/label/cuda-11.8.0
    cuda-visual-tools-11.8.0   |                0           1 KB  nvidia/label/cuda-11.8.0
    libcublas-11.11.3.6        |                0          33 KB  nvidia/label/cuda-11.8.0
    libcublas-dev-11.11.3.6    |                0       375.9 MB  nvidia/label/cuda-11.8.0
    libcufft-10.9.0.58         |                0           6 KB  nvidia/label/cuda-11.8.0
    libcufft-dev-10.9.0.58     |                0       144.6 MB  nvidia/label/cuda-11.8.0
    libcurand-10.3.0.86        |                0           3 KB  nvidia/label/cuda-11.8.0
    libcurand-dev-10.3.0.86    |                0        51.2 MB  nvidia/label/cuda-11.8.0
    libcusolver-11.4.1.48      |                0          29 KB  nvidia/label/cuda-11.8.0
    libcusolver-dev-11.4.1.48  |                0        94.1 MB  nvidia/label/cuda-11.8.0
    libcusparse-11.7.5.86      |                0          13 KB  nvidia/label/cuda-11.8.0
    libcusparse-dev-11.7.5.86  |                0       175.7 MB  nvidia/label/cuda-11.8.0
    libnpp-11.8.0.86           |                0         294 KB  nvidia/label/cuda-11.8.0
    libnpp-dev-11.8.0.86       |                0       143.2 MB  nvidia/label/cuda-11.8.0
    libnvjpeg-11.9.0.86        |                0           4 KB  nvidia/label/cuda-11.8.0
    libnvjpeg-dev-11.9.0.86    |                0         1.9 MB  nvidia/label/cuda-11.8.0
    nsight-compute-2022.3.0.22 |                0       455.0 MB  nvidia/label/cuda-11.8.0
    ------------------------------------------------------------
                                           Total:        1.74 GB

The following NEW packages will be INSTALLED:

  cuda               nvidia/label/cuda-11.8.0/win-64::cuda-11.8.0-0
  cuda-cccl          nvidia/label/cuda-11.8.0/win-64::cuda-cccl-11.8.89-0
  cuda-command-line~ nvidia/label/cuda-11.8.0/win-64::cuda-command-line-tools-11.8.0-0
  cuda-compiler      nvidia/label/cuda-11.8.0/win-64::cuda-compiler-11.8.0-0
  cuda-cudart        nvidia/label/cuda-11.8.0/win-64::cuda-cudart-11.8.89-0
  cuda-cudart-dev    nvidia/label/cuda-11.8.0/win-64::cuda-cudart-dev-11.8.89-0
  cuda-cuobjdump     nvidia/label/cuda-11.8.0/win-64::cuda-cuobjdump-11.8.86-0
  cuda-cupti         nvidia/label/cuda-11.8.0/win-64::cuda-cupti-11.8.87-0
  cuda-cuxxfilt      nvidia/label/cuda-11.8.0/win-64::cuda-cuxxfilt-11.8.86-0
  cuda-demo-suite    nvidia/label/cuda-11.8.0/win-64::cuda-demo-suite-11.8.86-0
  cuda-documentation nvidia/label/cuda-11.8.0/win-64::cuda-documentation-11.8.86-0
  cuda-libraries     nvidia/label/cuda-11.8.0/win-64::cuda-libraries-11.8.0-0
  cuda-libraries-dev nvidia/label/cuda-11.8.0/win-64::cuda-libraries-dev-11.8.0-0
  cuda-memcheck      nvidia/label/cuda-11.8.0/win-64::cuda-memcheck-11.8.86-0
  cuda-nsight-compu~ nvidia/label/cuda-11.8.0/win-64::cuda-nsight-compute-11.8.0-0
  cuda-nvcc          nvidia/label/cuda-11.8.0/win-64::cuda-nvcc-11.8.89-0
  cuda-nvdisasm      nvidia/label/cuda-11.8.0/win-64::cuda-nvdisasm-11.8.86-0
  cuda-nvml-dev      nvidia/label/cuda-11.8.0/win-64::cuda-nvml-dev-11.8.86-0
  cuda-nvprof        nvidia/label/cuda-11.8.0/win-64::cuda-nvprof-11.8.87-0
  cuda-nvprune       nvidia/label/cuda-11.8.0/win-64::cuda-nvprune-11.8.86-0
  cuda-nvrtc         nvidia/label/cuda-11.8.0/win-64::cuda-nvrtc-11.8.89-0
  cuda-nvrtc-dev     nvidia/label/cuda-11.8.0/win-64::cuda-nvrtc-dev-11.8.89-0
  cuda-nvtx          nvidia/label/cuda-11.8.0/win-64::cuda-nvtx-11.8.86-0
  cuda-nvvp          nvidia/label/cuda-11.8.0/win-64::cuda-nvvp-11.8.87-0
  cuda-profiler-api  nvidia/label/cuda-11.8.0/win-64::cuda-profiler-api-11.8.86-0
  cuda-runtime       nvidia/label/cuda-11.8.0/win-64::cuda-runtime-11.8.0-0
  cuda-sanitizer-api nvidia/label/cuda-11.8.0/win-64::cuda-sanitizer-api-11.8.86-0
  cuda-toolkit       nvidia/label/cuda-11.8.0/win-64::cuda-toolkit-11.8.0-0
  cuda-tools         nvidia/label/cuda-11.8.0/win-64::cuda-tools-11.8.0-0
  cuda-visual-tools  nvidia/label/cuda-11.8.0/win-64::cuda-visual-tools-11.8.0-0
  libcublas          nvidia/label/cuda-11.8.0/win-64::libcublas-11.11.3.6-0
  libcublas-dev      nvidia/label/cuda-11.8.0/win-64::libcublas-dev-11.11.3.6-0
  libcufft           nvidia/label/cuda-11.8.0/win-64::libcufft-10.9.0.58-0
  libcufft-dev       nvidia/label/cuda-11.8.0/win-64::libcufft-dev-10.9.0.58-0
  libcurand          nvidia/label/cuda-11.8.0/win-64::libcurand-10.3.0.86-0
  libcurand-dev      nvidia/label/cuda-11.8.0/win-64::libcurand-dev-10.3.0.86-0
  libcusolver        nvidia/label/cuda-11.8.0/win-64::libcusolver-11.4.1.48-0
  libcusolver-dev    nvidia/label/cuda-11.8.0/win-64::libcusolver-dev-11.4.1.48-0
  libcusparse        nvidia/label/cuda-11.8.0/win-64::libcusparse-11.7.5.86-0
  libcusparse-dev    nvidia/label/cuda-11.8.0/win-64::libcusparse-dev-11.7.5.86-0
  libnpp             nvidia/label/cuda-11.8.0/win-64::libnpp-11.8.0.86-0
  libnpp-dev         nvidia/label/cuda-11.8.0/win-64::libnpp-dev-11.8.0.86-0
  libnvjpeg          nvidia/label/cuda-11.8.0/win-64::libnvjpeg-11.9.0.86-0
  libnvjpeg-dev      nvidia/label/cuda-11.8.0/win-64::libnvjpeg-dev-11.9.0.86-0
  nsight-compute     nvidia/label/cuda-11.8.0/win-64::nsight-compute-2022.3.0.22-0


Proceed ([y]/n)? y


Downloading and Extracting Packages
cuda-runtime-11.8.0  | 1 KB      | ############################################################################ | 100%
libcusolver-dev-11.4 | 94.1 MB   |                                                                              |   0%
libcusparse-dev-11.7 | 175.7 MB  |                                                                              |   0%
cuda-visual-tools-11 | 1 KB      |                                                                              |   0%
cuda-11.8.0          | 1 KB      | ############################################################################ | 100%
cuda-nvtx-11.8.86    | 43 KB     |                                                                              |   0%
cuda-cccl-11.8.89    | 1.2 MB    |                                                                              |   0%
libnvjpeg-dev-11.9.0 | 1.9 MB    |                                                                              |   0%
libcufft-10.9.0.58   | 6 KB      |                                                                              |   0%
cuda-profiler-api-11 | 21 KB     |                                                                              |   0%

Preparing transaction: done
Verifying transaction: done
Executing transaction: done
PS C:\ProgramData\anaconda3\Scripts>

你可能感兴趣的:(windows)