PaddleHub icon indicating copy to clipboard operation
PaddleHub copied to clipboard

PaddleHub: ModuleNotFoundError: No module named paddlehub.vision

Open grant7788 opened this issue 4 years ago • 3 comments

OS: Ubuntu 18.04.5, kernel 5.4.0-54-generic Python 3.6.9 PaddlePaddle 1.8.5 PaddleHub 1.8.3

PaddleHub/demo/image_classicication$ python3 train.py File "train.py", line3, in import paddlehub.vision.transforms as T ModuleNotFoundError: No module named 'paddlehub.vision'

grant7788 avatar Dec 02 '20 05:12 grant7788

paddlehub的版本过低,建议用最新版2.0beta

haoyuying avatar Dec 02 '20 06:12 haoyuying

安装paddlehub的指令:pip install paddlehub==2.0.0b @grant7788

chunzhang-hub avatar Dec 03 '20 02:12 chunzhang-hub

I cannot run video_special_effects.py because it continues to tell me I don't have paddlehub installed, even after I pip installed paddlehub & paddlehub==2.0.0; I used command prompt administrator mode, and Anaconda, I don't know what else to do. There is an onnx error that I cannot solve.

k46ayxh\onnx_552c1a4a443f498ca2b6dae56d5299c7']' returned non-zero exit status 1. [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for onnx Failed to build onnx ERROR: Could not build wheels for onnx, which is required to install pyproject.toml-based projects

ghost avatar Apr 13 '23 02:04 ghost