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
  • 32,074
  • 13
  • 108
  • 128
noob
  • 531
  • 3
  • 24

1 Answers1

3

You need to install libspatialindex-dev first.

!apt install libspatialindex-dev
!pip install osmnx

Then you can import it

import osmnx
korakot
  • 32,074
  • 13
  • 108
  • 128