.dot to .png conversion

Hi,

I have trouble with the convert ‘’.dot" file to “.png” file. How can I fix it?

I use the command below:
dot -Tpng my_iris_tree.dot -o iris_trees.png

Error :

File “”, line 1
dot -Tpng my_iris_tree.dot -o iris_trees.png
^
SyntaxError: invalid syntax

Looks like you’re typing this into a python program. Type it into a command prompt (bash terminal or cmd.exe) instead?