首页 > 解决方案 > 安装 shap 时出错 - 我在 AMD 而不是 NVIDIA 时要求 CUDA

问题描述

有人可以帮忙吗?

pip install shap不适合我

The nvcc binary could not be located in your $PATH. Either  add it to your path, or set $CUDAHOME to enable CUDA
    Error building cuda module: TypeError('cannot unpack non-iterable NoneType object')
    WARNING: Could not compile cuda extensions

我不能拥有 CUDA,因为我在 Ubuntu 20.04 中使用 AMD。

标签: pythonshap

解决方案


推荐阅读