I am trying to use osm library in Python. I found a recommended package called osmnx. I installed it via the command:
python -m pip install osmnx
when I type:
py -m pip freeze
I receive:
click==7.1.2
cycler==0.10.0
Flask==1.1.2
Flask-Ext==0.1
Flask-SQLAlchemy==2.4.4
itsdangerous==1.1.0
Jinja2==2.11.3
kiwisolver==1.3.1
MarkupSafe==1.1.1
matplotlib==3.3.4
numpy==1.20.1
osm==1.4
overpy==0.4
Pillow==8.1.0
pyparsing==2.4.7
python-dateutil==2.8.1
six==1.15.0
SQLAlchemy==1.3.23
Werkzeug==1.0.1
but osmnx is never there. Consequently when I run the code posted below, I receive the following error:
Traceback (most recent call last):
File "m:\python lessons\flask apps\osm\osmnx\test.py", line 1, in <module>
import osmnx as ox
ModuleNotFoundError: No module named 'osmnx'
Please let me know how to install osmnx in Python. code:
import osmnx as ox
import matplotlib.pyplot as plt
place_name = "Kamppi, Helsinki, Finland"
graph = ox.graph_from_place(place_name)