不满意错误glibc和cudatoolkit


conda install  -c anaconda -c conda-forge -c nvidia cudatoolkit=11 tensorflow-gpu=2

我想安装cudatoolkit=11和tensorflow gpu=2,但conda给了我以下错误消息

UnsatisfiableError: The following specifications were found to be incompatible with your system:
- feature:/linux-64::__glibc==2.31=0
- cudatoolkit=11 -> __glibc[version='>=2.17,<3.0.a0']
Your installed version is: 2.31

如果我运行

conda install  -c anaconda -c conda-forge -c nvidia cudatoolkit=11

conda可以成功安装cudatoolkit=11。

既然glibc是一个系统特性,为什么单独安装cudatoolkit是可以的?

为什么glic 2.31不在>2.17,<3.0.a0?

我提供答案是因为我找不到确切的原因和解决方案
如果您是从conda-base-env中的conda-forge通道安装,则很可能会由于conda和conda-forgec之间的c运行时间差异而出现此问题
为了解决这个问题,首先创建虚拟环境,使conda-forge通道成为第一个,并坚持它(严格(安装软件包,我认为坚持conda-fornge没有任何害处,并且发现许多有经验的人也提出了同样的建议(坚持conda-forge通道(。

将anaconda更新到最新版本解决了我的问题。

尝试conda update conda

使用conda install -c fvcore -c iopath -c conda-forge fvcore iopath安装fvcore和iopath。然后再试一次。

让环境解算器为cuda和tensorflow选择正确的版本。

假设您正在设置一个新的conda环境:

conda create -n <NAME> cudatoolkit tensorflow-gpu <packages> -c <channels>

我在docker构建过程中遇到了这个问题,但在部署的容器中没有遇到;

因此,我通过在docker cmd&不在码头文件中

最新更新