我使用以下命令在我的 conda 环境中安装 g++:
conda install gxx
安装后,使用 g++ --version 检查版本并得到以下输出:
g++ (conda-forge gcc 12.2.0-19) 12.2.0
但是我的 CUDA 版本是 11.3,它不适用于 g++ 12.2.0。下面是我尝试根据这个 repo:
运行 sh ./make.sh 时的错误RuntimeError: The current installed version of g++ (12.2.0) is
greater than the maximum required version by CUDA 11.3 (10.2.1).
Please make sure to use an adequate version of g++ (>=5.0.0,
<=10.2.1).
所以我的问题是安装 10.2.1 g++ 版本的 conda 命令是什么?
我尝试了以下命令,但没有一个有效:
conda install gxx-10.2.1
conda install [email protected]
conda install gxx==10.2.1
conda install gxx 10.2.1