如果你和我一样,通过以下命令安装whisper
pip install git+https://github.com/openai/whisper.git
但却出现了fatal: unable to access 'https://github.com/openai/whisper.git/': OpenSSL SSL_read: Connection was reset, errno 10054
那么只需要
在运行pip install
之前在运行以下的命令,再次重新pip install ...
即可
pip install setuptools-rust
原因:
安装whisper需要先安装rust环境依赖。
官方在README.md有过说明
You may need rust installed as well, in case tiktoken does not provide a pre-built wheel for your platform. If you see installation errors during the pip install command above, please follow the Getting started page to install Rust development environment. Additionally, you may need to configure the PATH environment variable, e.g. export PATH="$HOME/.cargo/bin:$PATH"
. If the installation fails with No module named ‘setuptools_rust’, you need to install setuptools_rust, e.g. by running:文章来源:https://www.toymoban.com/news/detail-555375.html
pip install setuptools-rust
引用:https://github.com/openai/whisper#setup文章来源地址https://www.toymoban.com/news/detail-555375.html
到了这里,关于安装whisper模块踩过的坑的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!