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.74k stars 2.07k forks source link

本地装libpaddle后使用报错:找不到指定模块 #2284

Closed Gnaixzl closed 1 year ago

Gnaixzl commented 1 year ago

import paddlehub时报错如下: File "D:\soft\python\lib\site-packages\paddle\fluid\core.py", line 269, in from . import libpaddle ImportError: DLL load failed while importing libpaddle: 找不到指定的模块。

版本为: paddlehub==2.3.1 paddlenlp==2.5.2 paddlepaddle==2.5.1 numpy==1.24.4 python==3.8.6

请问是什么原因呢?缺少的DLL要怎么解决呢?

rainyfly commented 1 year ago

可以参考如下命令按照: conda create -n py38 python==3.8 conda activate py38 python -m pip install paddlepaddle-gpu==2.5.1 -i https://pypi.tuna.tsinghua.edu.cn/simple pip install paddlehub==2.4.0