osmnx-graph_from_place给出错误“初始化列表中没有参数”

时间:2019-03-28 23:19:48

标签: python-3.x osmnx

需要下载曼哈顿地区的OSM数据

import osmnx as ox
import networkx as nx
import geopandas as gpd
import matplotlib.pyplot as plt
import pandas as pd

place_name = "Manhattan, New York, USA"
graph = ox.graph_from_place(place_name, network_type='drive')
fig, ax = ox.plot_graph(graph)

应该绘制可驾驶街道图

1 个答案:

答案 0 :(得分:0)

这是一个具有依赖性的安装问题。 on GitHub对此进行了讨论和解决。