mininet / mininet

Emulator for rapid prototyping of Software Defined Networks

Home Page:https://mininet.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

No module named mininet

AlexavierCarlen opened this issue · comments

I did successfully install mininet and ryu and both worked well in basic. However, for another project, when I execute the .py code for mininet, there is always the error " No module named: 'mininet' ". But I found that all other projects on github have the same lines:
"from mininet.#$% import Mininet,etc". Even the teaching mentioned this.
I coudn't find any solutions to this problem, hope somebodies will be able to help.
image
image

Your prompt indicates that you have a virtual environment activated. You likely installed mininet inside the virtual environment.
However, python3 refers to the globally installed Python instance. Try to type python topo.py instead.

The above works for Linux, which I assume you are using. The shell looks like the default theme for the Gnome shell.

@lantz the issue seems to be that the OP has not installed mininet for the python interpreter that they tried to use. I think it is ok to close this. @AlexavierCarlen please confirm

commented

This appears to be a python environment/path issue. If you think it isn't we can reopen it.