当前位置:   article > 正文

pip install transformers报错_error: failed building wheel for tokenizers

error: failed building wheel for tokenizers

前提:Python 3.6.2        Tensorflow 2.6.0

问题:windows系统下anaconda虚拟环境安装transformers时,报错如下:

  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. [end of output]
  8. note: This error originates from a subprocess, and is likely not a problem with pip.
  9. ERROR: Failed building wheel for tokenizers
  10. Failed to build tokenizers
  11. ERROR: Could not build wheels for tokenizers, which is required to install pyproject.toml-based projects

解决方法:

        选择相对应的Rust安装即可

本文内容由网友自发贡献,转载请注明出处:https://www.wpsshop.cn/w/酷酷是懒虫/article/detail/926536
推荐阅读
相关标签
  

闽ICP备14008679号