首页 文章
  • 0 votes
     answers
     views

    pip install osmnx给出错误代码1

    我正在尝试使用该命令安装osmnx python -m pip install osmnx 但它给出以下错误: '命令'python setup.py egg_info“失败,错误代码1在C:\ Users \ myname \ AppData \ Local \ Temp \ pip-install-o3ha6gld \ Shapely '
  • 0 votes
     answers
     views

    OSMnx在基本使用时给出“TypeError:query必须是字符串或查询字符串列表”

    按照安装OSMnx(包括显式安装 spatialindex )的说明进行操作后 brew install spatialindex pip install osmnx 运行第一个基本的例子 import osmnx as ox G = ox.graph_from_place('Manhattan Island, New York City, New York, USA', network_typ...
  • 0 votes
     answers
     views

    Osmnx:从街道的一侧拆除人行道

    我正在尝试使用带有python 2.7的Osmnx库为我的大学校园中的行人绘制简化 Map . 到目前为止,我有这个Image of the plot,正如你所看到的,它正在密谋在街道两侧绘制人行道 . 我打算从这里拆除人行道的一侧 . 但是我很困惑用什么逻辑来解决这个问题? 到目前为止,我已经创建了一个自定义过滤器,仅绘制了人行道 custom_walk = ('["area&quo...
  • 0 votes
     answers
     views

    从0.5.1升级到0.8.2后,graph_from_polygon中的osmnx TypeError

    在去年完成我的osmnx论文工作后,我退回到Python PTSD一段时间了 . 但随着2017年ACS 5年预测的发布,我有一些新的数据分析要做 . 所以我将我的osmnx更新为0.8.2,做了conda更新--all -c conda-forge,并启动了我的旧笔记本 . 它主要起作用但我在graph_from_polygon函数中出错了 . TypeError ...
  • 1 votes
     answers
     views

    Python库osmnx不能与Spyder一起使用

    我正在使用Mac,从终端,我可以访问osmnx;但是,osmnx功能不能从spyder运行 . 我试图在脚本中使用osmnx来自动化该过程 . 当我尝试运行一个简单的脚本,例如: import osmnx as ox graph = ox.load_graphml('NL_motorway.graphml') 我收到以下错误: File "", line 1, in run...

热门问题