尝试在conda中安装nvcc时出错

时间:2020-05-10 13:42:16

标签: 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_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

我已经在寻找有关此新问题的解决方案,但希望能提供帮助。

0 个答案:

没有答案