修复模块未找到的问题:’openai_whisper’

huangapple go评论77阅读模式
英文:

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.

huangapple
  • 本文由 发表于 2023年5月25日 00:31:40
  • 转载请务必保留本文链接:https://go.coder-hub.com/76325688.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定