安装OpenAI Whisper时遇setuptools缺失错误,如何解决?
解决OpenAI Whisper安装失败问题
错误根源
安装日志明确提示:ERROR: Can not execute setup.py since setuptools is not available in the build environment.,说明当前Python环境缺少构建包必需的setuptools工具。
解决步骤
- 先升级setuptools和wheel(Python包构建核心依赖):
pip install --upgrade setuptools wheel - 完成后重新执行Whisper安装命令:
pip install git+https://github.com/openai/whisper.git
额外排查项
如果仍出现异常,可检查:
- 确认当前pip和Python属于同一环境(若使用虚拟环境需先激活)
- 确保网络稳定,能正常克隆Whisper的GitHub仓库
内容的提问来源于stack exchange,提问作者foxy
相关产品推荐
相关产品推荐

