Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
neso613 opened this issue Aug 18, 2022 · 1 comment

Comments

@neso613
Copy link

neso613 commented Aug 18, 2022

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
Copy link

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 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants