我正在尝试在 AWS Sagemaker 上安装 openai-whisper。我尝试创建虚拟环境,升级到 python 3.9,发现安装在完成之前就被“杀死”了。我需要帮助解决这个问题,已经挣扎了几天了。预先感谢。
pip install openai-whisper
追溯:
Keyring is skipped due to an exception: 'keyring.backends'
Collecting openai-whisper
Using cached openai-whisper-20230306.tar.gz (1.2 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting torch
Killed
import whisper
---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
/tmp/ipykernel_13713/3212043240.py in <module>
----> 1 import whisper
ModuleNotFoundError: No module named 'whisper'
如果您查看安装日志的最后一行,就会发现发生这种情况是因为安装由于内存不足而被终止。
遇到问题时,请使用以下内容进行安装:
pip install openai-whisper --no-cache-dir
您能否尝试在没有虚拟环境的情况下实现这一点并让我们知道会发生什么?您是在 Studio 或经典笔记本实例中执行此操作吗?
请勿安装使用
“pip install openai-whisper --no-cache-dir”
这将安装错误版本的耳语。而是使用:
pip uninstall Whisper - 如果您从未安装过 Whisper,请跳过此步骤,否则会出现错误,但出于安全目的仍然运行它。
pip 安装 git+https://github.com/openai/whisper.git
这将安装正确的版本