I am trying to do an intersection with 2 GeoDataFrame using the gdf.overlay function on Google Colab. Please see the code below
!sudo apt install libspatialindex-dev
!sudo pip3 install rtree
!pip install pygeos
overlap = gpd.overlay(gdf1,gdf2, how='intersection')
overlap.plot(figsize=(10,10), cmap='jet')
and I get the following error message
ImportError: Spatial indexes require either `rtree` or `pygeos`. See installation instructions at https://geopandas.org/install.html
What is causing the issue here?