当前位置:   article > 正文

安装whisper模块踩过的坑_no module named 'whisper

no module named 'whisper

如果你和我一样,通过以下命令安装whisper

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

但却出现了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
  • 1

原因:
安装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:

pip install setuptools-rust
  • 1

引用:https://github.com/openai/whisper#setup

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/菜鸟追梦旅行/article/detail/82754
推荐阅读
相关标签
  

闽ICP备14008679号