【Tips】python中使用pyflann使出现ModuleNotFoundError: No module named ‘index‘解决方案

在跑ARO模型时,
paper: https://arxiv.org/pdf/1604.00989.pdf
original code https://github.com/varun-suresh/Clustering

用到了一个库pyflann,但是出现了问题

ModuleNotFoundError: No module named 'index'

GitHub主页有人这样说的
pyflann问题https://github.com/primetang/pyflann/issues/1
在这里插入图片描述

sudo 2to3 -w [pyflann directory in dist-packages]

我试了一下,没有什么效果,后来又找到一个方法
网站链接
在这里插入图片描述

pip install pyflann-py3

问题就解决了~~~

  • 5
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
Traceback (most recent call last): File "D:\python\lib\site-packages\numpy\core\__init__.py", line 23, in <module> from . import multiarray File "D:\python\lib\site-packages\numpy\core\multiarray.py", line 10, in <module> from . import overrides File "D:\python\lib\site-packages\numpy\core\overrides.py", line 8, in <module> from numpy.core._multiarray_umath import ( ModuleNotFoundError: No module named 'numpy.core._multiarray_umath' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "D:\neox_tools-master\neox_tools-master\onmyoji_converter.py", line 2, in <module> import numpy as np File "D:\python\lib\site-packages\numpy\__init__.py", line 139, in <module> from . import core File "D:\python\lib\site-packages\numpy\core\__init__.py", line 49, in <module> raise ImportError(msg) ImportError: IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE! Importing the numpy C-extensions failed. This error can happen for many reasons, often due to issues with your setup or how NumPy was installed. We have compiled some common reasons and troubleshooting tips at: https://numpy.org/devdocs/user/troubleshooting-importerror.html Please note and check the following: * The Python version is: Python3.8 from "D:\python\python.exe" * The NumPy version is: "1.25.0" and make sure that they are the versions you expect. Please carefully study the documentation linked above for further help. Original error was: No module named 'numpy.core._multiarray_umath'
07-20

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值