3

I'm trying to import osmnx on google Colab and it did install successfully using !pip install osmnx but when I try to import it in Colab like this import osmnx give me this error

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

Does anyone know how to fix this error?

korakot
  • 37,818
  • 16
  • 123
  • 144
noob
  • 672
  • 10
  • 28

1 Answers1

4

You need to install libspatialindex-dev first.

!apt install libspatialindex-dev
!pip install osmnx

Then you can import it

import osmnx
korakot
  • 37,818
  • 16
  • 123
  • 144