Running files problems in python

Hi everyone!
I am working with BooleanNet1.2.7 in Ubuntu and I am trying to run the file “”, but I am facing problems. I have installed Python2.7 and I think I have installed all the other packages needed for such scripts. The problem is that when I run this file it shows an error message " networkx is missing". I don’t know how to solve it, however I tried several times. Has anyone faced the same problem as me? I would appreciate any help.
Thank you very much in advance!

Is this a Rhino-related problem?

No, I don’t think. Indeed, I’m new here and I am not sure if they’re related.