代码之家  ›  专栏  ›  技术社区  ›  W K Lao

“Plotly”无法在Jupyter中导入

  •  0
  • W K Lao  · 技术社区  · 1 年前

    我试图在jupter中导入“plotly”,但弹出了以下错误消息。不确定是否有人能帮忙?非常感谢你!

    enter image description here

    我试图导入库,但没有成功。

    1 回复  |  直到 1 年前
        1
  •  1
  •   Maria K    1 年前

    你可能有 plotly 安装在不同的环境中,而不是 jupyter 使用。我发现这篇文章在安装模块时很有用 朱庇特 https://jakevdp.github.io/blog/2017/12/05/installing-python-packages-from-jupyter/

    特别是,我通常在jupyter内部使用这种方法:

    import sys
    !{sys.executable} -m pip install plotly