【问题标题】:import osmnx on google colab give me an error在 google colab 上导入 osmnx 给我一个错误
【发布时间】:2021-03-30 07:26:59
【问题描述】:

我正在尝试在 google Colab 上导入 osmnx,它确实使用 !pip install osmnx 成功安装,但是当我尝试像这样在 Colab 中导入它时 import osmnx 给我这个错误

AttributeError: /usr/bin/python3: undefined symbol: Error_GetLastErrorNum

有人知道如何解决这个错误吗?

【问题讨论】:

    标签: python osmnx google-colaboratory


    【解决方案1】:

    你需要先安装 libspatialindex-dev。

    !apt install libspatialindex-dev
    !pip install osmnx
    

    然后就可以导入了

    import osmnx
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2022-08-20
      • 2020-11-28
      • 2021-06-06
      • 2022-08-06
      • 1970-01-01
      • 2022-12-22
      • 2022-06-16
      • 2021-12-20
      相关资源
      最近更新 更多