u1234x1234 / pynanoflann

Unofficial python wrapper to the nanoflann k-d tree
BSD 2-Clause "Simplified" License
34 stars 8 forks source link

How to find the package 'nanoflann_ext' ? #11

Open AmadouTidjani opened 1 year ago

AmadouTidjani commented 1 year ago

Hello,

Thanks for this great tool.

I try to use your code, and I realize that there is no specific package named 'nanoflann_ext' in import nanoflann_ext.

Can I get some help with this? Thanks in advance

u1234x1234 commented 1 year ago

Hello,

nanoflann_ext is native .so library C++ compiled here (using https://github.com/pybind/pybind11): https://github.com/u1234x1234/pynanoflann/blob/4c8399e40662bbe96a813e04d38500d5dc659b89/src/pynanoflann.cpp#L426

During the installation https://github.com/u1234x1234/pynanoflann#install it should be [automatically compiled] from C++ source files. (https://github.com/u1234x1234/pynanoflann/blob/master/setup.py#L74).

If you cloned the repo then you need to:

python setup.py install

before the using.

Or via pip:

pip install git+https://github.com/u1234x1234/pynanoflann.git@0.0.9

Please feel free to ask any questions.

AmadouTidjani commented 1 year ago

Hello,

Thanks for the instructions.