Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

导入ddddocr报错 #60

Closed
AstronW opened this issue Oct 23, 2023 · 3 comments
Closed

导入ddddocr报错 #60

AstronW opened this issue Oct 23, 2023 · 3 comments

Comments

@AstronW
Copy link

AstronW commented Oct 23, 2023

系统 win10 LTSC
ddddocr版本 1.4.8
onnxruntime版本 1.15.1
我把所有的包全都复制到了site-packages下,运行时就会报错
image
onnxruntime文件夹下有onnxruntime_pybind11_state.pyd这个文件,看起来好像是应用程序找不到或处理不了这个文件,请问大佬应该怎么解决

onnxruntime

├─capi
│ │ onnxruntime_collect_build_info.py
│ │ onnxruntime_inference_collection.py
│ │ onnxruntime_providers_shared.dll
│ │ onnxruntime_pybind11_state.pyd
│ │ onnxruntime_validation.py
│ │ version_info.py
│ │ _ld_preload.py
│ │ _pybind_state.py
│ │ init.py
│ │
│ └─training

@AstronW
Copy link
Author

AstronW commented Oct 23, 2023

之前的问题好像时因为pip时使用的python版本和runtime中的python版本不同导致的,现在在import numpy的时候又出现了新的问题
python版本为 3.11
numpy的版本为 1.26.1
image

@skywind3000
Copy link
Owner

注意,连 site-packages 中的 .pth , ._pth 文件一起复制过去。

@AstronW
Copy link
Author

AstronW commented Oct 23, 2023

导入numpy库的时候只将numpy文件夹导入进去了,但是还有numpy.lib的文件夹同样需要导入才可以正常import

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants