Skip to content

ImportError: No module named 'plotly.graph_objs'; 'plotly' is not a package #723

Closed
@turfaa

Description

@turfaa

I use Python 3.5.2 and just installed plotly 2.0.6. Whenever I want to import plotly, this error is always present

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/mnt/data/Documents/Coding/tucil3/plotly.py", line 2, in <module>
    from plotly.graph_objs import *
ImportError: No module named 'plotly.graph_objs'; 'plotly' is not a package

How to fix this? Thanks

--
edit : nevermind, I had a file named plotly.py

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions