m1 macmini python3.8 命令行执行 paddleocr 卡死无响应 #13060
-
请提供下述完整信息以便快速定位问题/Please provide the following information to quickly locate the problem
我们提供了AceIssueSolver来帮助你解答问题,你是否想要它来解答(请填写yes/no)?/We provide AceIssueSolver to solve issues, do you want it? (Please write yes/no):yes 请尽量不要包含图片在问题中/Please try to not include the image in the issue. 执行命令后输出以下信息,然后cpu占用99.6% 内存占用 754M。一直无响应
|
Beta Was this translation helpful? Give feedback.
Replies: 12 comments 7 replies
-
同问,Apple M1 Pro 运行官方测试例子打印ppocr INFO: ./imgs/11.jpg之后就一直卡死不动,cpu和内存还有余量,卡了一晚上 |
Beta Was this translation helpful? Give feedback.
-
Apple M2 Pro同样有类似问题,旁边同学mac和我一样可以跑,但我的不行,请问这个问题有解决方案了吗? |
Beta Was this translation helpful? Give feedback.
-
hello,你的问题有解决吗? |
Beta Was this translation helpful? Give feedback.
-
没有 |
Beta Was this translation helpful? Give feedback.
-
总算解决了:原来是因为opencv的版本不对导致ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. |
Beta Was this translation helpful? Give feedback.
-
我m1 pro 也遇到了类似的问题,就是卡死没反应,CPU99 opencv-python的版本是4.6.0.66 |
Beta Was this translation helpful? Give feedback.
-
同样的问题 MacBook m1 pro |
Beta Was this translation helpful? Give feedback.
-
I have the same problem. Followed the steps, but without luck. Also, I have deleted the whole virtual environment and reinstalled everything without success. Hello, @tink2123 Any thoughts on this? |
Beta Was this translation helpful? Give feedback.
-
一样的问题,卡住不动了 |
Beta Was this translation helpful? Give feedback.
-
最近发现社区这个问题很多。我自己也遇到了。根据我自己的解决经验,在这里做一下总结回答。 环境:
问题原因:出现卡住不动时,我猜测有一半多应该是paddlepaddle没安装对 解决方案:步骤1:查看当前python所在平台$ python -m platform
# 如果你的是arm64的,则该步骤没问题
macOS-14.5-arm64-arm-64bit
# 如果你的是x86的,那么你就需要尝试安装arm版的miniconda了
macos-10.16-x86 64-i386-64bit
步骤2:验证paddlepaddle是否安装正确
>> import paddle
>> paddle.utils.run_check()
# 输出以下 → 成功
PaddlePaddle is installed successfully! 如果步骤2并没有成功,请尝试步骤3 步骤3:尝试安装paddle-develop版本python -m pip install paddlepaddle==0.0.0 -f https://www.paddlepaddle.org.cn/whl/mac/cpu/develop.html 安装之后,再次尝试步骤2 步骤4:重新尝试PaddleOCR代码$ pip install paddleocr
$ paddleocr --image_dir ./imgs/11.jpg --use_angle_cls true --use_gpu false 写在最后
|
Beta Was this translation helpful? Give feedback.
-
我尝试了@SWHL的方法之后还是不行,但是大概原因应该就是python的库版本不匹配的问题 |
Beta Was this translation helpful? Give feedback.
-
Hi, From this thread, this worked for me on M2 # CREATE A VENV #THEN... I FOUND IF ON A MAC M2+ THIS FIX HELPED IT WORK#13060 |
Beta Was this translation helpful? Give feedback.
最近发现社区这个问题很多。我自己也遇到了。根据我自己的解决经验,在这里做一下总结回答。
环境:
问题原因:
出现卡住不动时,我猜测有一半多应该是paddlepaddle没安装对
解决方案:
步骤1:查看当前python所在平台
步骤2:验证paddlepaddle是否安装正确
import paddle
这一步就会卡住。如果步骤2并没有成功,请尝试步骤3
步骤3:尝试安装paddle-develop版本
安装之后,再次尝试步骤2
步骤4:重新尝试PaddleOCR代码