Skip to content

m1 macmini python3.8 命令行执行 paddleocr 卡死无响应 #13060

Pinned Answered by SWHL
jethroHuang asked this question in Q&A
Discussion options

You must be logged in to vote

最近发现社区这个问题很多。我自己也遇到了。根据我自己的解决经验,在这里做一下总结回答。

环境:

  • OS: macOS Apple M1 Pro 14.5

问题原因:

出现卡住不动时,我猜测有一半多应该是paddlepaddle没安装对

解决方案:

步骤1:查看当前python所在平台

$ python -m platform

# 如果你的是arm64的,则该步骤没问题
macOS-14.5-arm64-arm-64bit

# 如果你的是x86的,那么你就需要尝试安装arm版的miniconda了
macos-10.16-x86 64-i386-64bit
  • 安装arm版miniconda,参见link
  • 在安装完之后,请再次尝试步骤1

步骤2:验证paddlepaddle是否安装正确

⚠️注意:如果paddlepaddle安装有误,一般会在import paddle这一步就会卡住。

>> 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 paddle…

Replies: 12 comments 7 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
5 replies
@Bogdan-Hasanov
Comment options

@SWHL
Comment options

SWHL Jun 14, 2024
Maintainer

@Bogdan-Hasanov
Comment options

@everythingability
Comment options

@WpTimothy
Comment options

Answer selected by jzhang533
Comment options

You must be logged in to vote
2 replies
@SWHL
Comment options

SWHL Aug 21, 2024
Maintainer

@wzhworld
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
Converted from issue

This discussion was converted from issue #11377 on June 13, 2024 11:51.