请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

安装了CUDA Toolkit 12.5, env.yaml怎么修改?

CUDA Toolkit 11.3不支持ubuntu 22, 我安装的是CUDA Toolkit 12.5,
我改了env里的cudatoolkit==12.5.1,
跑conda env create -f 0202-env.yaml 的结果:

2 channel Terms of Service accepted
Channels:
 - pytorch
 - conda-forge
 - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
 - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
 - https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch
 - defaults
Platform: linux-64
Collecting package metadata (repodata.json): done
Solving environment: failed

PackagesNotFoundError: The following packages are not available from current channels:
  - **cudatoolkit==12.5.1=h2bc3f7f_2**

Current channels:

  - https://conda.anaconda.org/pytorch
  - https://conda.anaconda.org/conda-forge
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch
  - https://repo.anaconda.com/pkgs/main
  - https://repo.anaconda.com/pkgs/r

To search for alternate channels that may provide the conda package you're
looking for, navigate to

    https://anaconda.org

and use the search bar at the top of the page.

跑 conda activate videocomposer的结果:

EnvironmentNameNotFound: Could not find conda environment: videocomposer
You can list all discoverable environments with `conda info --envs`.

怎么办?求助!

正在回答 回答被采纳积分+3

2回答

Frank 2025-09-06 09:46:24

你可以用  nvidia-smi  和 nvcc -V  查看你环境的驱动版本和 CUDA Toolkit 版本,一般来说,只要Toolkit 版本是 11.8 兼容性都是很不错的。

0 回复 有任何疑惑可以回复我~
Frank 2025-09-06 09:42:20

试试 

CUDA Toolkit 11.8

0 回复 有任何疑惑可以回复我~
问题已解决,确定采纳
还有疑问,暂不采纳
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号