-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Description
python3.12, numpy 2.2.6 >2.3.4 版本错误,降低到1.26版本,openvino ,opencv-python-headless 这些又会冲突,有没有办法支持一下呢?
错误信息:
ImportError:
A module that was compiled using NumPy 1.x cannot be run in
NumPy 2.3.4 as it may crash. To support both 1.x and 2.x
versions of NumPy, modules must be compiled with NumPy 2.0.
Some module may need to rebuild instead e.g. with 'pybind11>=2.12'.
If you are a user of the module, the easiest solution will be to
downgrade to 'numpy<2' or try to upgrade the affected module.
We expect that some modules will need time to support NumPy 2.
Traceback (most recent call last):
File "/Users/mac/src/main/java/com/test/ddddocrr.py", line 1, in
import ddddocr
File "/usr/local/lib/python3.12/site-packages/ddddocr/init.py", line 13, in
import cv2
File "/usr/local/lib/python3.12/site-packages/cv2/init.py", line 181, in
bootstrap()
File "/usr/local/lib/python3.12/site-packages/cv2/init.py", line 153, in bootstrap
native_module = importlib.import_module("cv2")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/Cellar/[email protected]/3.12.3/Frameworks/Python.framework/Versions/3.12/lib/python3.12/importlib/init.py", line 90, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ImportError: numpy.core.multiarray failed to import