paddlehub安装服务模块时报错ModuleNotFoundError: No module named 'paddle.nn.layer.layers' #12897
Unanswered
HysysRobert
asked this question in
Q&A
Replies: 1 comment
-
我这里是进行ser命令时报这个错,然后重新pip install -r requirements.txt时会报包冲突 解决方法就是降低一些版本,像我这里是因为onnx和paddlepaddle中的protobuf版本会冲突,降低了onnx的版本,就好了 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
(base) (venv) PS E:\Project\AI\Publish\OCR27> hub install deploy\hubserving\ocr_det
E:\Project\AI\Publish\OCR27\venv\lib\site-packages_distutils_hack_init_.py:36: UserWarning: Setuptools is replacing distutils.
import paddlenlp
import paddlenlp
File "E:\Project\AI\Publish\OCR27\venv\lib\site-packages\paddlenlp_init_.py", line 35, in
from . import (
File "E:\Project\AI\Publish\OCR27\venv\lib\site-packages\paddlenlp\data_init_.py", line 16, in
from .data_collator import *
File "E:\Project\AI\Publish\OCR27\venv\lib\site-packages\paddlenlp\data\data_collator.py", line 26, in
from ..transformers import BertTokenizer
File "E:\Project\AI\Publish\OCR27\venv\lib\site-packages\paddlenlp\transformers_init_.py", line 17, in
from .model_utils import PretrainedModel, register_base_model
File "E:\Project\AI\Publish\OCR27\venv\lib\site-packages\paddlenlp\transformers\model_utils.py", line 63, in
from .generation_utils import GenerationMixin
File "E:\Project\AI\Publish\OCR27\venv\lib\site-packages\paddlenlp\transformers\generation_utils.py", line 29, in
from paddle.nn.layer.layers import in_declarative_mode
ModuleNotFoundError: No module named 'paddle.nn.layer.layers'
我们提供了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.
Beta Was this translation helpful? Give feedback.
All reactions