LoginSignup
0
0

No module named 'numpy.core._multiarray_umath'

Last updated at Posted at 2023-10-20

[Conclusion]
Mismatch python version between /usr/bin/python and flatpak's python causes this error.

[Story]

  • Privately developped python script uses numpy library works fine with flatpak's gimp.
  • Updated flatpak's gimp.
  • Above script starts giving error with No module named 'numpy.core._multiarray_umath'

[Solution steps]

  • Check python's version under /usr/bin and flatpak's bin by the followings.
    /usr/bin/python3 --version
    Python 3.10
    /var/lib/flatpak/runtime/org.gnome.Platform/x86_64/45/active/files/bin/python --version
    Python 3.11.0rc1
  • Install python3.11 by apt
  • Reinstall python libraries such as numpy

[Main cause]
Since numpy's _multiarray_umath is a cpython built library, require reinstallation under python3.11.

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0