当前位置:   article > 正文

安装transformers报错error:can‘t find Rust compiler(无需安装Rust)_error: can't find rust compiler

error: can't find rust compiler

解决方法在最下面

报错: 

  1. error: can't find Rust compiler
  2.   If you are using an outdated pip version, it is possible a prebuilt wheel is available for this package but pip is not able to install from it. Installing from the wheel would avoid the need for a Rust compiler.
  3.   To update pip, run:
  4.       pip install --upgrade pip
  5.   and then retry package installation.
  6.   If you did intend to build this package from source, try installing a Rust compiler from your system package manager and ensure it is on the PATH during installation. Alternatively, rustup (available at https://rustup.rs) is the recommended way to download and update the Rust compiler toolchain.
  7.   ----------------------------------------
  8.   ERROR: Failed building wheel for tokenizers
  9. Failed to build tokenizers
  10. ERROR: Could not build wheels for tokenizers, which is required to install pyproject.toml-based projects

看了网上一圈要么让你升级pip要么让你安装rust,都试了没用。

解决办法:

直接指定transformer的版本就行

指令:pip install transformers==3.4

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

闽ICP备14008679号