I am trying to conduct an inner spatial join using Geopandas, where both points and poly are Geodataframes.
instersection = gpd.sjoin(points, poly, how='inner')
However it is throwing up the error of:
Spatial indexes require either `rtree` or `pygeos`
I am aware it is do with not having installed libspatialindex-dev (see libspatialindex and Rtree on python), but none of the sudo apt install ... method works on Jupyter.
How am I able to install it on Jupyter notebook?