pynanoflann icon indicating copy to clipboard operation
pynanoflann copied to clipboard

How to find the package 'nanoflann_ext' ?

Open AmadouTidjani opened this issue 1 year ago • 2 comments

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

AmadouTidjani avatar May 02 '23 08:05 AmadouTidjani

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/[email protected]

Please feel free to ask any questions.

u1234x1234 avatar May 03 '23 04:05 u1234x1234

Hello,

Thanks for the instructions.

AmadouTidjani avatar May 05 '23 08:05 AmadouTidjani