Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ModuleNotFoundError: No module named 'paddle' #12107

Closed
seeeyou opened this issue May 13, 2024 · 2 comments
Closed

ModuleNotFoundError: No module named 'paddle' #12107

seeeyou opened this issue May 13, 2024 · 2 comments
Assignees
Labels
Code PR is needed This issue could inspire a code PR status/close

Comments

@seeeyou
Copy link

seeeyou commented May 13, 2024

(paddle_env) ☁  PaddleOCR [main] ⚡  python tools/infer_kie_token_ser_re.py \
    -o Architecture.Backbone.checkpoints=/Users/qyongkang/working/paddle/re_LayoutXLM_xfun_zh/ \
    Global.infer_img=/Users/qyongkang/working/paddle/form/ \
    -o_ser Architecture.Backbone.checkpoints=/Users/qyongkang/working/paddle/ser_LayoutXLM_xfun_zh/
Traceback (most recent call last):
  File "/Users/qyongkang/working/PaddleOCR/tools/infer_kie_token_ser_re.py", line 31, in <module>
    import paddle
ModuleNotFoundError: No module named 'paddle'

请问如何解决,文档中写的这样运行,但结果有错误。安装paddle时也安装不了,提示另外的错误

(paddle_env) ☁  PaddleOCR [main] ⚡  pip install paddle                      
Collecting paddle
  Using cached paddle-1.0.2.tar.gz (579 kB)
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error
  
  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [8 lines of output]
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "/private/var/folders/8l/pl5jym7107n6dbn56f5slg7r0000gn/T/pip-install-69isce0v/paddle_78dbfedf57be4d18bbd73b6de304acb1/setup.py", line 3, in <module>
          import paddle
        File "/private/var/folders/8l/pl5jym7107n6dbn56f5slg7r0000gn/T/pip-install-69isce0v/paddle_78dbfedf57be4d18bbd73b6de304acb1/paddle/__init__.py", line 5, in <module>
          import common, dual, tight, data, prox
      ModuleNotFoundError: No module named 'common'
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.

@seeeyou seeeyou added the Code PR is needed This issue could inspire a code PR label May 13, 2024
@GreatV
Copy link
Collaborator

GreatV commented May 14, 2024

这是什么运行环境 参考 https://www.paddlepaddle.org.cn/ 快速安装

@UserWangZz
Copy link
Collaborator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Code PR is needed This issue could inspire a code PR status/close
Projects
None yet
Development

No branches or pull requests

5 participants