gpt4 book ai didi

python - Plotly 在 Jupyter 问题中

转载 作者:太空狗 更新时间:2023-10-29 20:55:45 25 4
gpt4 key购买 nike

我安装了 plotly.py 以使用 Jupyter 绘制一些图,但我无法导入它。

! pip install plotly --upgrade
Requirement already up-to-date: plotly in c:\python34\lib\site-packages
Requirement already up-to-date: requests in c:\python34\lib\site-packages (from plotly)
Requirement already up-to-date: six in c:\python34\lib\site-packages (from plotly)
Requirement already up-to-date: pytz in c:\python34\lib\site-packages (from plotly)
Cleaning up...

然后

  import plotly
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
<ipython-input-6-c27a4132ad2e> in <module>()
----> 1 import plotly

ImportError: No module named 'plotly'

我正在运行 Python 3.4.1 和 Jupyter,但我无法得到的是当我从命令行运行 Python 时 plotly 工作得很好。有什么建议么? (我真的不想干净安装 Python)

最佳答案

在命令提示符下运行以下命令解决了我的问题。

conda install -c https://conda.anaconda.org/plotly plotly

Jupter 可能检测不到通过 pip install 安装的 plotly。

关于python - Plotly 在 Jupyter 问题中,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36959782/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com