how and where to run a python script to create a topology in mininet inside Ubuntu

J

JackR

Guest
I am trying to run a python script to create a topology using mininet python API, but when I am running the code

python file.py



getting error:

ImportError: cannot import name mininet



I have kept the inside mininet/custom directory. Where should I keep my file.py to run?

Edit1: Adding output of $ pip show mininet

# pip show mininet
Name: mininet
Version: 2.2.2
Summary: Process-based OpenFlow emulator
Home-page: UNKNOWN
Author: Bob Lantz
Author-email: [email protected]
License: BSD
Location: /usr/lib/python2.7/dist-packages
Requires:

Continue reading...
 
Top