安装指定版本的transfomers报错ERROR: Failed building wheel for tokenizers
问题:打算安装
transformers == 4.9.1
但是一直报错
ERROR: Failed building wheel for tokenizers
Failed to build tokenizers
ERROR: Could not build wheels for tokenizers, which is required to install pyproject.toml-based projects
解决方法:
安装高版本的,能用就行,指定版本的估计是不兼容
pip install --upgrade pip
pip install transformers
安装成功!