rtree库的安装

2020-12-26  本文已影响0人  JOHNNYHU_a1f5

因为trimesh需要使用rtree,运行的时候提示找不到rtree

如果执行还是会有问题

pip install rtree

还需要执行

sudo apt install libspatialindex-dev

如果是macOS系统,执行

brew install spatialindex

否则无法运行,后来发现其实rtree是封装了libspacialindex的so,所以依赖这个lib。

DESCRIPTION

    Rtree provides Python bindings to libspatialindex for quick

    hyperrectangular intersection queries.

参考链接:

https://github.com/mikedh/trimesh/issues/941

上一篇 下一篇

猜你喜欢

热点阅读