Traceback (most recent call last):
File "C:\Program Files\PycharmProjects\xxxx\spider.py", line 7, in
import ddddocr
File "C:\Users\huaheng\AppData\Local\Programs\Python\Python310\lib\site-packages\ddddocr\__init__.py", line 10, in
import onnxruntime
File "C:\Users\huaheng\AppData\Local\Programs\Python\Python310\lib\site-packages\onnxruntime\__init__.py", line 55, in
raise import_capi_exception
File "C:\Users\huaheng\AppData\Local\Programs\Python\Python310\lib\site-packages\onnxruntime\__init__.py", line 23, in
from onnxruntime.capi._pybind_state import (
File "C:\Users\huaheng\AppData\Local\Programs\Python\Python310\lib\site-packages\onnxruntime\capi\_pybind_state.py", line 33, in
from .onnxruntime_pybind11_state import * # noqa
ImportError: DLL load failed while importing onnxruntime_pybind11_state: 找不到指定的模块。
点击打开
提示说电脑缺少vc程序插件
下载运行之后就解决了