最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

No module named 'numpy._core._multiarray_umath' error when using GIMP 3.0.0 RC2 Python Interpreter in PyCharm -

programmeradmin4浏览0评论

I am unable to use pip install directly with the Python 3.12.8 interpreter that comes with GIMP 3.0.0 RC2. As a workaround, I use my system Python 3.12.8 to install the required packages (e.g., numpy) using pip. After installation, I manually copy the entire site-packages directory from my system Python environment to the corresponding site-packages directory in GIMP’s Python environment.

However, I am not sure if there are any files or dependencies that I might be missing when copying over the site-packages folder manually. If there’s a better or more reliable way to do this, I’d love to know.

    "C:\Program Files\GIMP 3\bin\pythonw.exe" "C:\Users\ng_mi\Nus\ITSS\AiMeiMei\GIMP Plugin\numpy_test.py" 
Traceback (most recent call last):
  File "C:\Program Files\GIMP 3\lib\python3.12\site-packages\numpy\_core\__init__.py", line 23, in <module>
    from . import multiarray
  File "C:\Program Files\GIMP 3\lib\python3.12\site-packages\numpy\_core\multiarray.py", line 10, in <module>
    from . import overrides
  File "C:\Program Files\GIMP 3\lib\python3.12\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 "C:\Program Files\GIMP 3\lib\python3.12\site-packages\numpy\__init__.py", line 128, in <module>
    from numpy.__config__ import show as show_config
  File "C:\Program Files\GIMP 3\lib\python3.12\site-packages\numpy\__config__.py", line 4, in <module>
    from numpy._core._multiarray_umath import (
  File "C:\Program Files\GIMP 3\lib\python3.12\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:

    .html

Please note and check the following:

  * The Python version is: Python3.12 from "C:\Program Files\GIMP 3\bin\pythonw.exe"
  * The NumPy version is: "2.1.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'


The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "C:\Users\ng_mi\Nus\ITSS\AiMeiMei\GIMP Plugin\numpy_test.py", line 1, in <module>
    import numpy as np
  File "C:\Program Files\GIMP 3\lib\python3.12\site-packages\numpy\__init__.py", line 133, in <module>
    raise ImportError(msg) from e
ImportError: Error importing numpy: you should not try to import numpy from
        its source directory; please exit the numpy source tree, and relaunch
        your python interpreter from there.

Process finished with exit code 1

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论