Giter Site home page Giter Site logo

File "D:\codetools\anaconda3\lib\site-packages\onnxruntime\capi\_pybind_state.py", line 32, in <module> from .onnxruntime_pybind11_state import * # noqa ImportError: DLL load failed while importing onnxruntime_pybind11_state: 找不到指定的模块。 about ddddocr HOT 6 CLOSED

sml2h3 avatar sml2h3 commented on May 18, 2024
File "D:\codetools\anaconda3\lib\site-packages\onnxruntime\capi\_pybind_state.py", line 32, in from .onnxruntime_pybind11_state import * # noqa ImportError: DLL load failed while importing onnxruntime_pybind11_state: 找不到指定的模块。

from ddddocr.

Comments (6)

YuchaoLau avatar YuchaoLau commented on May 18, 2024

升级 onnxruntime 版本

from ddddocr.

xiaohuanxiongi avatar xiaohuanxiongi commented on May 18, 2024
Traceback (most recent call last):
  File "/usr/local/var/functions/ap-guangzhou/lam-nr3yic7g/flask_demo-1650266770/src/app.py", line 4, in <module>
    import ddddocr
  File "/usr/local/var/functions/ap-guangzhou/lam-nr3yic7g/flask_demo-1650266770/src/ddddocr/__init__.py", line 8, in <module>
    import onnxruntime
  File "/usr/local/var/functions/ap-guangzhou/lam-nr3yic7g/flask_demo-1650266770/src/onnxruntime/__init__.py", line 35, in <module>
    raise import_capi_exception
  File "/usr/local/var/functions/ap-guangzhou/lam-nr3yic7g/flask_demo-1650266770/src/onnxruntime/__init__.py", line 23, in <module>
    from onnxruntime.capi._pybind_state import get_all_providers, get_available_providers, get_device, set_seed, \
  File "/usr/local/var/functions/ap-guangzhou/lam-nr3yic7g/flask_demo-1650266770/src/onnxruntime/capi/_pybind_state.py", line 32, in <module>
    from .onnxruntime_pybind11_state import *  # noqa
ModuleNotFoundError: No module named 'onnxruntime.capi.onnxruntime_pybind11_state'

这腾讯云部署报这个错怎么解决呢?我看了onnxruntime版本是1.11.0了,Python是3.6版本的

from ddddocr.

YuchaoLau avatar YuchaoLau commented on May 18, 2024
Traceback (most recent call last):
  File "/usr/local/var/functions/ap-guangzhou/lam-nr3yic7g/flask_demo-1650266770/src/app.py", line 4, in <module>
    import ddddocr
  File "/usr/local/var/functions/ap-guangzhou/lam-nr3yic7g/flask_demo-1650266770/src/ddddocr/__init__.py", line 8, in <module>
    import onnxruntime
  File "/usr/local/var/functions/ap-guangzhou/lam-nr3yic7g/flask_demo-1650266770/src/onnxruntime/__init__.py", line 35, in <module>
    raise import_capi_exception
  File "/usr/local/var/functions/ap-guangzhou/lam-nr3yic7g/flask_demo-1650266770/src/onnxruntime/__init__.py", line 23, in <module>
    from onnxruntime.capi._pybind_state import get_all_providers, get_available_providers, get_device, set_seed, \
  File "/usr/local/var/functions/ap-guangzhou/lam-nr3yic7g/flask_demo-1650266770/src/onnxruntime/capi/_pybind_state.py", line 32, in <module>
    from .onnxruntime_pybind11_state import *  # noqa
ModuleNotFoundError: No module named 'onnxruntime.capi.onnxruntime_pybind11_state'

这腾讯云部署报这个错怎么解决呢?我看了onnxruntime版本是1.11.0了,Python是3.6版本的

onnxruntime我用的是1.8.0,你可以试一下这个版本

from ddddocr.

xiaohuanxiongi avatar xiaohuanxiongi commented on May 18, 2024

还是一样的报错,切换版本到1.8.0了;但是我更换了Python版本3.7可以了。。

from ddddocr.

YuchaoLau avatar YuchaoLau commented on May 18, 2024

还是一样的报错,切换版本到1.8.0了;但是我更换了Python版本3.7可以了。。

OK

from ddddocr.

sml2h3 avatar sml2h3 commented on May 18, 2024

统一说一下解决办法,遇到这个情况的话说明你的pip版本低了,使用命令
python -m pip install --upgrade pip
升级一下pip即可,再重新安装ddddocr即可
pip uninstall ddddocr
pip install ddddocr

from ddddocr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.