Issue
I successfully installed networkx
using pip install networkx
. I also tested it with Python using command prompt, and it worked.
Now, when I tried importing the module in Python IDLE, it throws the following error:
Traceback (most recent call last):
File "C:/Users/hp/Desktop/PROJECTS/osmnx/test.py", line 1, in <module>
import networkx
ModuleNotFoundError: No module named 'networkx'
Solution
I solved the problem by upgrading my Python from 3.7.3 to 3.8.5. I ran the import statement after that, but it showed the same error. With that, what I did is to run the pip install networkx
again in the Command Prompt, and it finally worked!
Answered By - romeoPH
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.