Skip to content

ImportError: cannot import name 'NamedTuple' from partially initialized module 'typing' (most likely due to a circular import) (/usr/local/lib/python3.10/dist-packages/cv2/typing/__init__.py) #4804

@sduqlsc

Description

@sduqlsc

如题,python -c "import paddle; paddle.utils.run_check()",报错。

paddlex服务化部署OCR,这里的版本是否需要一致?

CANN-8.0.RC2 对 numpy 和 opencv 部分版本不支持,建议安装指定版本
python -m pip install numpy==1.26.4
python -m pip install opencv-python==3.4.18.65

pip list|grep cv
opencv-contrib-python    4.10.0.84
opencv-python            3.4.18.65

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions