ModuleNotFoundError: No module named 'plotly.graph_objects'

22,785

Solution 1

You should use instead:

from plotly import graph_objs as go

Solution 2

This is the approach now mostly used in the plotly docs. Example:

import plotly.graph_objects as go
Share:
22,785
MSG
Author by

MSG

Updated on July 12, 2020

Comments

  • MSG
    MSG almost 4 years

    Trying to use 'plotly.graph_objects' but I get this error

    ModuleNotFoundError: No module named 'plotly.graph_objects'

    How do I download module and apply using anaconda navigator

  • nicolaskruchten
    nicolaskruchten almost 5 years
    As of version 4 we've also aliased plotly.graph_objects so you can do also import plotly.graph_objects as go
  • KansaiRobot
    KansaiRobot about 2 years
    version 4 of what?
  • KansaiRobot
    KansaiRobot about 2 years
    yes and it does not work. that is why this question