Comments (6)
升级 onnxruntime 版本
from ddddocr.
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.
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.
还是一样的报错,切换版本到1.8.0了;但是我更换了Python版本3.7可以了。。
from ddddocr.
还是一样的报错,切换版本到1.8.0了;但是我更换了Python版本3.7可以了。。
OK
from ddddocr.
统一说一下解决办法,遇到这个情况的话说明你的pip版本低了,使用命令
python -m pip install --upgrade pip
升级一下pip即可,再重新安装ddddocr即可
pip uninstall ddddocr
pip install ddddocr
from ddddocr.
Related Issues (20)
- 求适配py3.12 HOT 2
- 目标检测只能返回坐标,可以返回识别出的对象的内容嘛 HOT 6
- 想请问下出现这个问题怎么解决或规避呢?
- 打包后在在本地环境是可以使用的 但是在服务器或者挂机宝使用有问题 HOT 1
- 用pyinstaller封装之后再执行会报错 HOT 1
- 有别的语言的版本吗?比如Golang
- 目标检测模型用的是什么模型
- 计算两张缺口滑动图时,报错(-215:Assertion failed) !_src.empty() in function 'cv::cvtColor' HOT 4
- 发票识别
- 大佬 ocr啥时候能返回文字和坐标 HOT 2
- 有懂php的大佬吗?能帮我看看使用这个php生成的验证码,为什么是黑白的?
- AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' HOT 2
- ERROR: Could not find a version that satisfies the requirement onnxruntime (from ddddocr) (from versions: none) ERROR: No matching distribution found for onnxruntime
- 这个最大支持多大的图片啊,截图生成的图片,太大了识别不了吗
- 这种验证码失败几率几乎百分百,我就没成功过。。。 HOT 4
- 能否识别两个相同的图案
- window 环境 安装之后报错
- 关于滑动验证码识别不准确问题 HOT 1
- 自己训练的数据,使用的ocr功能,20个线程一起调用flask接口,cpu飙到15以上,正常吗?
- python12以上就不能用的问题
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ddddocr.