how to solve "no module named networkx" Error?

3.5k Views Asked by At

i am trying to run a python code as pox controller using below command :

./pox.py openflow.discovery CloudNetController

but always i get this error:

could not import module : CloudNetController

please help how can i solve this error.

1

There are 1 best solutions below

0
On BEST ANSWER

Is this controller?

this controller imports :

import networkx as nx

Hence you should

pip install networkx