infiniflow / ragflow

RAGFlow is an open-source RAG (Retrieval-Augmented Generation) engine based on deep document understanding.
https://ragflow.io
Apache License 2.0
22.88k stars 2.24k forks source link

[Question]: ImportError: DLL load failed while importing cv2: 内存位置访问无效。 #3168

Closed czhcc closed 1 week ago

czhcc commented 1 week ago

Describe your problem

windows 11 python 3.12 按ragflow 0.13.0中pyproject.toml文件安装完依赖,执行 importlib.import_module("cv2") 会产生错误 ImportError: DLL load failed while importing cv2: 内存位置访问无效。

但如果新建环境后,单独安装opencv-python包,执行上面的语句就没问题。

czhcc commented 1 week ago

重建虚拟环境,再次安装依赖又正常了