【问题标题】:error when install shap in Jupitor Notebook在 Jupyter Notebook 中安装 shap 时出错
【发布时间】:2021-11-09 05:41:31
【问题描述】:

尝试在 Jupitor Notebook 中安装 shap 时出现此错误。这里有专家可以帮我解决吗?

ERROR: Failed building wheel for shap
Failed to build shap
ERROR: Could not build wheels for shap which use PEP 517 and cannot be installed directly
---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-3-ef816dd6ade6> in <module>
      1 # Install and then reconnect.
      2 get_ipython().system(' pip install shap')
----> 3 import shap

ModuleNotFoundError: No module named 'shap'

【问题讨论】:

    标签: python shap


    【解决方案1】:

    您需要将 shap 模块添加到 Jupyter 环境中。只需在不同的单元格中运行 !pip install shap

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-04-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-01-08
      相关资源
      最近更新 更多