-
Hi, import whisper and get this error : "AttributeError: module 'whisper' has no attribute 'load_model'" The whisper command CLI , works fine . This error is if I try to run in IDE Can you help ? Eran |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 7 replies
-
It seems possible that your IDE is configured for a different Python installation/environment from what was used in the command line, and it somehow installed the unrelated whisper package from PyPI. You can confirm this by: import whisper
print(whisper.__file__) If the printed path ends with pip uninstall whisper
pip install git+https://github.com/openai/whisper.git |
Beta Was this translation helpful? Give feedback.
-
Another possible problem: |
Beta Was this translation helpful? Give feedback.
-
The above didn't work, but this did:
You delete any |
Beta Was this translation helpful? Give feedback.
-
I face same issue pip install git+https://github.com/openai/whisper.git Worked perfectly. Then load_model started to works. import whisper Thanks, |
Beta Was this translation helpful? Give feedback.
-
Hi, it was not working for me because it was crashing the installation of whisper in python 3.12 and 3.10, I deleted python 3.12, installed whisper and dependencies again and managed to run the script without errors. |
Beta Was this translation helpful? Give feedback.
It seems possible that your IDE is configured for a different Python installation/environment from what was used in the command line, and it somehow installed the unrelated whisper package from PyPI. You can confirm this by:
If the printed path ends with
whisper.py
, you're using the wrong package; please reinstall the package by running: