因为rtree是调用的的c的接口,到https://libspatialindex.org/install.html下载对应的版本,linux或者windows都有,安装即可
mkdir build
cd build
cmake ..
make
make install
ldconfig
如果还提示错误,
OSError: libspatialindex_c.so.4: cannot open shared object file: No such file or directory
https://www.cnblogs.com/kaituorensheng/p/4948046.html
cd /etc/ld.so.conf.d/
手动添加/usr/local/lib/