Anaconda 尝试在conda中安装nvcc时出错

Anaconda 尝试在conda中安装nvcc时出错,anaconda,conda,nvcc,Anaconda,Conda,Nvcc,我正在尝试将nvcc安装到conda环境中。结果如下: (pytorch_build) user@host:~/pytorch_git/pytorch$ conda install -c nvidia nvcc_linux-64 Collecting package metadata (current_repodata.json): done Solving environment: done ## Package Plan ## environment location: path_t

我正在尝试将nvcc安装到conda环境中。结果如下:

(pytorch_build) user@host:~/pytorch_git/pytorch$ conda install -c nvidia nvcc_linux-64
Collecting package metadata (current_repodata.json): done
Solving environment: done

## Package Plan ##

  environment location: path_to_conda/miniconda3/envs/pytorch_build

  added / updated specs:
    - nvcc_linux-64


The following NEW packages will be INSTALLED:

  nvcc_linux-64      nvidia/linux-64::nvcc_linux-64-10.1-hf484d3e_0

The following packages will be SUPERSEDED by a higher-priority channel:

  certifi            conda-forge::certifi-2020.4.5.1-py37h~ --> pkgs/main::certifi-2020.4.5.1-py37_0


Proceed ([y]/n)? 

Preparing transaction: done
Verifying transaction: done
Executing transaction: done
ERROR conda.core.link:_execute(700): An error occurred while installing package 'nvidia::nvcc_linux-64-10.1-hf484d3e_0
'.
Rolling back transaction: done

[Errno 2] No such file or directory: 'path_to_conda/miniconda3/pkgs/nvcc_linux-64-10.1-hf484d3e_
0/bin/nvcc'
()
我手动检查并
'path_to_conda/miniconda3/pkgs/nvcc_linux-64-10.1-hf484d3e_
0/bin/nvcc'
不存在。 我试着清理conda软件包缓存,但也没用。接下来,我将删除整个环境,并将nvcc添加到最初添加的包列表中。 还有什么我可以试试的吗?请告诉我是否需要/需要哪些附加信息

更新 我移除了整个环境,现在我得到了

File /usr/lib64/stubs/libcuda.so doesn't exist
我已经在寻找这个新问题的解决方案,但如果有任何帮助,我将不胜感激。

将nvcc添加到最初添加的软件包列表中。这通常是值得做的,即使您没有立即遇到任何问题。将nvcc添加到最初添加的包列表中。这通常是值得做的,即使你没有立即遇到任何问题。