whisper安装

发布时间 2023-09-12 19:20:19作者: qev211

安装环境

官方使用的是Python 3.9.9 and PyTorch 1.10.1来训练和检验的程序,但兼容python 3.7以后的版本和pytorch近期更新版本。
大家在安装whisper的时候请尽量保证python版本与官方一致或更新版本,这样可以避免一些版本不同导致的莫名奇妙的错误。

1、下载ffmpeg并添加到环境变量
2、安装git并添加到环境变量
3、安装pytorch
打开https://pytorch.org/, 下拉页面

复制pip3安装的内容,在本地执行
4、安装 whisper

  1. 安装release版
pip install -U openai-whisper
  1. 或者安装最新的

按官方说明,先执行

pip install git+https://github.com/openai/whisper.git

再执行

pip install --upgrade --no-deps --force-reinstall git+https://github.com/openai/whisper.git

在安装最新的时候,可能会报错。