espnet / espnet_model_zoo

ESPnet Model Zoo
Apache License 2.0
241 stars 39 forks source link

ModuleNotFoundError: No module named 'espnet_model_zoo.downloader'; 'espnet_model_zoo' is not a package #67

Open neso613 opened 2 years ago

neso613 commented 2 years ago

I have created new conda env and install espnet_model_zoo.

I ran this command -

from espnet_model_zoo.downloader import ModelDownloader

got error -

ERROR:root:espnet_model_zoo is not installed. Please install via pip install -U espnet_model_zoo. Traceback (most recent call last): File "", line 1, in File "/home/knit/espnet/my_scripts/espnet_model_zoo.py", line 8, in speech2text = Speech2Text.from_pretrained( File "/home/knit/anaconda3/envs/tf2onnx/lib/python3.8/site-packages/espnet2/bin/asr_inference.py", line 358, in from_pretrained from espnet_model_zoo.downloader import ModelDownloader ModuleNotFoundError: No module named 'espnet_model_zoo.downloader'; 'espnet_model_zoo' is not a package

zuochao912 commented 2 years ago

I also met with this problem,but I solve this problem by update pip. I notice the pip install espnet_model_zoo command didn't work by checking pip list,and the pip report "You are using pip version 22.0.4; however, version 22.2.2 is available.You should consider upgrading via the '/usr/bin/python3 -m pip install --upgrade pip' command.". So I run /usr/bin/python3 -m pip install --upgrade pip and run pip install espnet_model_zoo . Then it indeed install espnet-model-zoo 0.1.7 and other dependencies like huggingface-hub 0.9.1 .