导入袖扣为cf时,没有名为“ plotly.figure_factory”的模块

时间:2019-11-27 02:57:00

标签: python plotly cufflinks

我尝试import cufflinks as cf,但出现回溯错误:

Traceback (most recent call last):

  File "<ipython-input-22-fa10b240f3e4>", line 1, in <module>
    import cufflinks as cf

  File "/usr/local/lib/python3.6/dist-packages/cufflinks/__init__.py", line 15, in <module>
    from . import tools

  File "/usr/local/lib/python3.6/dist-packages/cufflinks/tools.py", line 6, in <module>
    import plotly.figure_factory as ff

ModuleNotFoundError: No module named 'plotly.figure_factory'

无论如何,我可以毫无问题地导入from plotly.tools import FigureFactory as FF

有人可以帮忙吗?谢谢。

0 个答案:

没有答案