当前位置: 首页> 房产> 家装 > mac安装Whisper

mac安装Whisper

时间:2025/7/10 4:56:42来源:https://blog.csdn.net/hongkid/article/details/140720963 浏览次数:0次

Whisper 官方git

https://github.com/openai/whisper?tab=readme-ov-file

基本上参考官方的安装流程

pip3 install -U openai-whisper
pip3 install git+https://github.com/openai/whisper.git 
pip3 install --upgrade --no-deps --force-reinstall git+https://github.com/openai/whisper.gitbrew install ffmpeg

不知道什么原因mac上没有pip命令,只有pip3,所以都改成pip3

尝试执行命令

whisper a.mp3 --model base --language Chinese 

发生以下错误
A module that was compiled using NumPy 1.x cannot be run in
NumPy 2.0.1 as it may crash. To support both 1.x and 2.x
versions of NumPy, modules must be compiled with NumPy 2.0.
Some module may need to rebuild instead e.g. with 'pybind11>=2.12'.

....

RuntimeError: Numpy is not available

大概意思NumPy的版本太高

解决办法

参考:https://stackoverflow.com/questions/78636947/a-module-that-was-compiled-using-numpy-1-x-cannot-be-run-in-numpy-2-0-0-as-it-ma

pip uninstall numpypip install numpy==1.26.4

至此问题都解决了

关键字:mac安装Whisper

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com

责任编辑: