PaddlePaddle / PaddleHub

Awesome pre-trained models toolkit based on PaddlePaddle. (400+ models including Image, Text, Audio, Video and Cross-Modal with Easy Inference & Serving)【安全加固,暂停交互,请耐心等待】
https://www.paddlepaddle.org.cn/hub
Apache License 2.0
12.75k stars 2.07k forks source link

paddlehub.module.manager.EnvironmentMismatchError: ernie cannot be installed because some conditions are not met: #2190

Open rrryan2016 opened 1 year ago

rrryan2016 commented 1 year ago

通过下面代码调用ernie模型时,报错 model = paddlehub.Module(name='ernie', task='seq-cls', num_classes=len(MyDataset.label_list))

paddlehub版本为2.3.1,paddlepaddle 版本尝试过2.0.2/2.4.1,尝试过安装cuda 10 gpu版本和cpu版本,均会报如下错

paddlehub.module.manager.EnvironmentMismatchError: ernie cannot be installed because some conditions are not met:

rrryan2016 commented 1 year ago

如果把参数name中的ernie改成ernie_tiny,则不会报错

rainyfly commented 1 year ago

你好,使用 hub install ernie==2.0.2 ,指定一下版本号试试