pip install rtree 以后运行失败

因为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/

 

posted @ 2019-05-31 13:40  茫茫碧落  阅读(526)  评论(0编辑  收藏  举报