Skip to content
Discussion options

You must be logged in to vote

After upgrading Ubuntu, your virtual environment broke — venvs aren’t portable across OS upgrades because the Python binary and paths change. That’s why you’re getting ModuleNotFoundError. The fix is to recreate the venv and reinstall Whisper:

python3 -m venv ~/.venv
source ~/.venv/bin/activate
pip install -U pip setuptools wheel
pip install git+https://github.com/openai/whisper.git

As for the 9 GB install: the Whisper code is tiny, but the model weights plus PyTorch dependencies (and CUDA libraries if you installed with GPU support) take up most of the space. If you only need English and want to save space, use tiny.en or base.en instead of the default models.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by doited-boy
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants