Search code examples
pythonubuntupycharmmininet

How to add mininet module to pycharm?


I'm trying to run a python code that imports mininet. I got the error

ModuleNotFoundError: No module named 'mininet.net' 

I tried to add mininet from the interpreter but there are only ipmininet (which keeps fail in installing) and mininet-topology-yaml. Any idea how to solve this issue? How I can add mininet to pycharm?

Thanks in advance.


Solution

  • I solved the problem. The PyCharm Python interpreter should be python 2 not any other version.

    Someone may need this answer in the future!!