PaddleOCR
PaddleOCR copied to clipboard
PaddleOCR 运行报错。FatalError: `Illegal instruction` is detected by the operating system.(非常着急)
- 系统环境/System Environment:Operating System: Ubuntu 22.04.4 LTS,Kernel: Linux 6.5.0-21-generic, Architecture: x86-64
- 版本号/Version:
- Paddle : 2.6.0
- PaddleOCR: 2.7.0.3
我的电脑是CPU的环境,网上搜索了很多材料都没有找到相关解决办法,通过运行如下: import paddle
paddle.utils.run_check()
PaddlePaddle is installed successfully! Let's start deep learning with PaddlePaddle now.
可以看到 PaddlePaddle 已经安装成功了,但 PaddleOCR 跑步起来就报错:
from paddleocr import PaddleOCR, draw_ocr ocr = PaddleOCR(use_angle_cls=True, lang="ch")
运行以上代码,报错信息如下:
Error Message Summary:
FatalError: Illegal instruction is detected by the operating system.
[TimeInfo: *** Aborted at 1709025734 (unix time) try "date -d @1709025734" if you are using GNU date ***]
[SignalInfo: *** SIGILL (@0x7f278b41e86a) received by PID 44052 (TID 0x7f2792799000) from PID 18446744071750936682 ***]
另外,使用:cat /proc/cpuinfo | grep avx2,可以看出我的电脑是支持该指令的。
尝试一下paddle 2.5.1版本呢
我遇到同样的问题 2.5.1 可以
已经木有2.5.1,有2.5.0.3,特供版本?
pip install "paddleocr==2.5.1" ERROR: Ignored the following yanked versions: 2.7.4 ERROR: Could not find a version that satisfies the requirement paddleocr==2.5.1 (from versions: 0.0.1.1, 0.0.2, 0.0.3, 0.0.3.1, 1.0.0, 1.0.1, 1.1.1, 2.0.1, 2.0.2, 2.0.3, 2.0.4, 2.0.5, 2.0.6, 2.2, 2.2.0.1, 2.2.0.2, 2.3, 2.3.0.1, 2.3.0.2, 2.4, 2.4.0.1, 2.4.0.2, 2.4.0.3, 2.4.0.4, 2.5, 2.5.0.2, 2.5.0.3, 2.6, 2.6.0.1, 2.6.0.2, 2.6.0.3, 2.6.1.0, 2.6.1.1, 2.6.1.2, 2.6.1.3, 2.7.0.0, 2.7.0.1, 2.7.0.2, 2.7.0.3, 2.7.2, 2.7.3) ERROR: No matching distribution found for paddleocr==2.5.1
python3.10, 2.6.0可以用
python3.10, 2.6.0可以用
我装了2.6.0也不可以啊
python3.11.2 paddlepaddle 2.6.1 paddleocr 2.6可以用。
需要手工将db_postprocess.py中的np.int改为int。