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'

