在
flair
Ventura 上的 python 3.10 虚拟环境中使用 pip install flair
安装 mac-os
时,出现以下错误:
ERROR: Failed building wheel for sentencepiece
使用
sentencepeice
单独安装 pip install sentenpeice
不起作用。
升级
pip
不起作用。
我正在使用 Intel MacBook。
Github 用户@millnerryan建议的答案清晰而准确。
尝试降级 Python。
我也遇到了同样的问题,也是使用 intel mac,每次我尝试使用 Transformer 库时,都会经历很多可能的解决方案但没有成功,即使有多个 chatGPT 建议。我卸载了 python 3.11 并返回到 3.9.13 版本,问题消失了!最新 python 版本的轮子似乎存在一些问题
尝试安装这些软件包
sudo apt-get install pkg-config
sudo apt-get install cmake
然后运行命令
pip install flair