我尝试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
。
有人可以帮忙吗?谢谢。