macos 安装 transformers 的时候报错:ERROR: Could not build wheels for tokenizers which use PEP 517 and canno
【代码】macos 安装 transformers 的时候报错:ERROR: Could not build wheels for tokenizers which use PEP 517 and canno。
·
简单点说:
- 你如果不指定具体版本而直接:
pip install transformers的话,他给你装的版本有点问题,macos 系统可能有点不支持,具体问题我也不是很清楚 - 解决的方案:直接指定安装
2.4.1版本的transformers即可
pip install transformers==2.4.1 -i https://pypi.tuna.tsinghua.edu.cn/simple
参考网站:
https://github.com/UKPLab/sentence-transformers/issues/221
https://github.com/huggingface/transformers/issues/2831#issuecomment-600141935
魔乐社区(Modelers.cn) 是一个中立、公益的人工智能社区,提供人工智能工具、模型、数据的托管、展示与应用协同服务,为人工智能开发及爱好者搭建开放的学习交流平台。社区通过理事会方式运作,由全产业链共同建设、共同运营、共同享有,推动国产AI生态繁荣发展。
更多推荐


所有评论(0)