I have installed mininet on my computer and now I want to run a python script with mininet. How should I do so?
If I just use python3 star.py, I get an error that:
Traceback (most recent call last):
File "star.py", line 2, in <module>
from mininet.cli import CLI
ModuleNotFoundError: No module named 'mininet'
If I try sudo mn python3 star.py, then I get
Usage: mn [options]
(type mn -h for details)
The mn utility creates Mininet network from the command line. It can create
parametrized topologies, invoke the Mininet CLI, and run tests.
Options:
-h, --help show this help message and exit
and if I try sudo mn and then python star.py, that doesnt work either.