英文:
Fix No module named 'openai_whisper'
问题
我已经使用以下命令安装了openai_whisper
包:
pip install openai-whisper
但是当我在代码中使用以下命令import openai_whisper
时,我收到了一个错误消息:ModuleNotFoundError: No module named 'openai_whisper'
。
我还尝试了以下命令,但没有用处:python -m pip install openai-whisper
。
英文:
I have installed the package openai_whisper
using this line
pip install openai-whisper
But when I used this line in the code import openai_whisper
, I got an error ModuleNotFoundError: No module named 'openai_whisper'
.
I also tried this line but with no use python -m pip install openai-whisper
答案1
得分: 2
After you installed the module. Try importing using import whisper
instead of import openai_whisper it works.
If it is not working then probably it will be an environment issue. The module you installed will be installed to a different python environment than what you are using right now.
If you are using VScode press crtl + shift + P to choose python interpreter and change the environment accrodingly.
英文:
After you installed the module. Try importing using import whisper
instead of import openai_whisper it works.
If it is not working then probably it will be an environment issue. The module you installed will be installed to a different python environment than what you are using right now.
If you are using VScode press crtl + shift + P to choose python interpreter and change the environment accrodingly.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论