Home / docs / PyFLANN for python3: ModuleNotFoundError: No module named ‘index’

PyFLANN for python3: ModuleNotFoundError: No module named ‘index’

PyFLANN for python3: ModuleNotFoundError: No module named ‘index’

I have installed the pyFLANN library for Python 3.6.5 using:

after installing, when I was trying to run a sample code given on their GitHub page:

I was getting the following error:

after adding brackets to print statement, the updated code:

executing it again produces:

The pyflann is actually compiled for python 2, so need to change some syntax errors in different files of installed pyflann directory in dist-packages of python3.

This site mentions almost all of the mistakes.

But the fastest method to convert pyflann to python3 compatible is using the following ( $ sudo 2to3 -w <path to pyflann in python dist-packages> )command:

after all, this executing the same file produces the expected results:

Download pyFlann for Python 3

Related Links:

Check Also

[UBUNTU 16.04] Tensorflow-gpu 1.11 with Compute capability 3.0 (with cuda 9 and cudnn 7.3)

The minimum required Cuda capability is 3.5: Tensorflow-gpu 1.11 Ignoring visible gpu device (device: 0, …

Leave a Reply

Your email address will not be published. Required fields are marked *

%d bloggers like this: