Ardeshir ojan
Ardeshir ojan

Reputation: 2419

how to import graph in a python module

I am a newbie in python but I got a code in python that I got to run it

from graph import Graph, Task

in this line, I have an error saying

No module named 'graph'

how can I fix this? thanks for your time and effort

Upvotes: 0

Views: 6369

Answers (1)

Siddhesh Khadapkar
Siddhesh Khadapkar

Reputation: 196

It may be because it is a typo as per my knowledge, the right name of the module is 'graphs' or 'graphviz' and not 'graph'

or may be you have not installed the module

you have to install module 'graph' on your system using 'pip' through cmd

Upvotes: 1

Related Questions