简体   繁体   English

kivy 中没有名为“numpy.core._multiarray_umath”的模块

[英]No module named 'numpy.core._multiarray_umath' in kivy

I keep getting the below error when trying to import numpy in kivy on an android device.尝试在 android 设备上的 kivy 中导入 numpy 时,我不断收到以下错误。

No module named 'numpy.core._multiarray_umath'

Why am I getting this error if I already installed numpy where the main.py file is located and I also made sure the file it is trying to import (_multiarray_umath) is located in the numpy library before building with buildozer, that is -> _multiarray_umath.cpython-36m-x86_64-linux-gnu.so located in numpy/core ?如果我已经在 main.py 文件所在的位置安装了 numpy,并且在使用 buildozer 构建之前,我还确保它尝试导入的文件 (_multiarray_umath) 位于 numpy 库中,即 -> _multiarray_umath ,为什么会出现此错误.cpython-36m-x86_64-linux-gnu.so位于numpy/core 中 Thanks in advance.提前致谢。

The file you talk about is a desktop linux binary, not compatible with your android device.您谈论的文件是桌面 linux 二进制文件,与您的 android 设备不兼容。 That is why it didn't work on android and (per the comments) the fix was to put numpy in the requirements so that an android version was built and included by buildozer.这就是为什么它在 android 上不起作用,并且(根据评论)修复是将 numpy 放在要求中,以便 buildozer 构建并包含一个 android 版本。

Listing numpy in the buildozer.spec file fixed the error, but I can't seem to get tensorflow to compile in kivy for android.在 buildozer.spec 文件中列出 numpy 修复了错误,但我似乎无法让 tensorflow 在 kivy for android 中编译。 Does tensorflow not work in kivy on android? tensorflow 在 android 上的 kivy 中不起作用吗?

Tensorflow is not currently supported.目前不支持 Tensorflow。 Apparently tensorflow lite works, but you need to include it via gradle and write some java wrapper code to access it.显然 tensorflow lite 可以工作,但是您需要通过 gradle 包含它并编写一些 java 包装器代码来访问它。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 ModuleNotFoundError:matplotlib 导入时没有名为“numpy.core._multiarray_umath”的模块 - ModuleNotFoundError: No module named 'numpy.core._multiarray_umath' on matplotlib import TensorFlow - ModuleNotFoundError:没有名为“numpy.core._multiarray_umath”的模块 - TensorFlow - ModuleNotFoundError: No module named 'numpy.core._multiarray_umath' 无法安装 numpy。 没有名为“numpy.core._multiarray_umath”的模块 - Unable to Install numpy. No module named 'numpy.core._multiarray_umath' ModuleNotFoundError:没有名为“numpy.core._multiarray_umath”的模块(安装 TensorFlow 时) - ModuleNotFoundError: No module named 'numpy.core._multiarray_umath' (While installing TensorFlow) 发生异常:ImportError "No module named 'numpy.core._multiarray_umath'" - Exception has occurred: ImportError "No module named 'numpy.core._multiarray_umath'" Windows VS 代码找不到 numpy 模块,即使它已安装(ModuleNotFoundError: No module named 'numpy.core._multiarray_umath') - Windows VS Code can't find numpy Module even though it is installed (ModuleNotFoundError: No module named 'numpy.core._multiarray_umath') pd.read_hdf抛出“无法将此数组的WRITABLE标志设置为True”和“没有名为“ numpy.core._multiarray_umath”的模块” - pd.read_hdf throws 'cannot set WRITABLE flag to True of this array' and 'No module named 'numpy.core._multiarray_umath' 当我安装 tensorflow 时,我收到以下错误 ImportError: cannot import name '_set_madvise_hugepage' from 'numpy.core._multiarray_umath' - when I installed tensorflow I get the following error ImportError: cannot import name '_set_madvise_hugepage' from 'numpy.core._multiarray_umath' 当使用matplotlib时,我得到`没有名为_multiarray_umath的模块 - I get `No module named _multiarray_umath` when using matplotlib 什么是 numpy.core._multiarray_umath.implement_array_function 以及为什么要花费大量时间? - what is numpy.core._multiarray_umath.implement_array_function and why it costs lots of time?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM