python项目Traceback (most recent call last):以及ImportError: 找不到指定的模块。解决

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: 找不到指定的模块。

 我有这些包,都导入了还是提示没有找到。 python项目Traceback (most recent call last):以及ImportError: 找不到指定的模块。解决_第1张图片

 点击打开

python项目Traceback (most recent call last):以及ImportError: 找不到指定的模块。解决_第2张图片

 提示说电脑缺少vc程序插件

下载运行之后就解决了

 

 

你可能感兴趣的:(Python,pycharm,python,开发语言)