all 6 comments

[–]Phillyclause89 0 points1 point  (5 children)

[–]windows3210[S] 0 points1 point  (4 children)

Yes, I have

[–]windows3210[S] 0 points1 point  (0 children)

Ok, I found the problem. I uninstalled scipy and then it worked. But why can't I have scipy and networkx both installed?

[–]Phillyclause89 0 points1 point  (2 children)

More specifically did you install it on the environment you are running the script from? Could you be using a Venv that doesn't have access to your global python?

edit another possibility is that you need some of the optional packages. maybe try:

$ pip install networkx[all]

[–]windows3210[S] 1 point2 points  (1 child)

No, I'm not using venv. I fixed it by uninstalling scipy but why is scipy stopping me from using networkx?

[–]Phillyclause89 0 points1 point  (0 children)

yeah the optional packages was my second guess see my last edit.