我本意是想安装allennlp库,但是卡在sentencepiece长时间不动,所以又去找了下载安装sentencepiece的方法,结果安装sentencepiece库也有问题。
首先,给出一个下载sentencepiece库的链接:
sentencepiece · PyPI
我选了第一个下载:
下载之后直接pip install会报错如下:
sentencepiece-0.1.96-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl is not a supported wheel on this platform.
需要给这个库改名,改成:
sentencepiece-0.1.96-cp37-cp37m-linux_x86_64.whl
把中间一堆乱七八糟的东西删掉,改成cp37-cp37m-linux_x86_64,再次安装即可成功。