PaddleHub 报错:ModuleNotFoundError:没有名为'paddle.utils'的模块,

kmb7vmvb  于 5个月前  发布在  其他
关注(0)|答案(2)|浏览(85)

PaddleHub 2.0.0b0
PaddlePaddle 2.0.0rc0
paddle 1.0.2
paddleocr 1.1.1
Ubuntu 18.04.4
python 3.6.9
最初在安装PaddlePaddle和PaddleHub时,之后运行hub ocr模型时提示缺少paddle包;后来安装paddle包后运行,提示缺少“paddle.utils”。Traceback (most recent call last):
File "/home/ubgpu/.local/bin/hub", line 5, in
from paddlehub.commands.utils import execute
File "/home/ubgpu/.local/lib/python3.6/site-packages/paddlehub/init.py", line 25, in
from paddlehub.utils import download as _download
File "/home/ubgpu/.local/lib/python3.6/site-packages/paddlehub/utils/download.py", line 19, in
from paddle.utils.download import get_path_from_url
ModuleNotFoundError: No module named 'paddle.utils'

lnxxn5zx

lnxxn5zx1#

请安装paddlehub2.0.0b1, pip install paddlehub==2.0.0b1

polhcujo

polhcujo2#

安装了这个pip install paddlehub==2.0.0b1,还是报No module named 'paddle.utils.cpp_extension'这个错误

相关问题