Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImportError: No module named 'index' #8

Open
ShaoYuanHo opened this issue Jul 13, 2018 · 6 comments
Open

ImportError: No module named 'index' #8

ShaoYuanHo opened this issue Jul 13, 2018 · 6 comments

Comments

@ShaoYuanHo
Copy link

Hi, I use pip to install pyflann and my environment is python3.5
when I compile "from pyflann import *", I got an error like this:

from pyflann import *
File "/.../anaconda3/lib/python3.5/site-packages/pyflann/init.py", line 27, in
from index import *
ImportError: No module named 'index'

so what I do next is pip install index, but I found the information: only these python versions are supported: [(2, 6), (2, 7), (3, 2), (3, 3), (3, 4)]

is there any way to use pyflann in python3.5?
Thank a lot

@proteomis
Copy link

Hello,
I had the same problem.
Have a look at this link.
Install the 2to3 Python library and translate pyflann as indicated :
2to3 -w <path to pyflann in python dist-packages>
It should solve the problem. It did on my installation.
Regards
Alain

@raoraoxiong
Copy link

Thanks a lot, I have solved this problem.

@XxoF
Copy link

XxoF commented Jan 3, 2021

You can try this command:
pip install pyflann-py3
or
python -m pip install pyflann-py3

@adityanair174
Copy link

adityanair174 commented Jun 3, 2023

Tried all the methods, none of them work. Any help?
I keep getting the FLANN error, post converting code using 2to3. I also manually changed to see if it works that way but, unfortunately it did not. Any help would be much appreciated

@AlineFurtado
Copy link

Hello. Did you manage to solve the problem? Could you help me, I have the same error in python 3.8
And when using colleague's solution "pip install pyflan3" I have new problem:
from .flann_ctypes import *
raise ImportError('Cannot load dynamic library. Did you compile FLANN?')
ImportError: Cannot load dynamic library. Did you compile FLANN?

@adityanair174
Copy link

adityanair174 commented Jul 10, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants