好的,这个提示就是让我们去下载 sentence_tranfomers,那么pip install 以下:
pip3 install sentence-transfomers
报错:
Defaulting to user installation because normal site-packages is not writeable
ERROR: Could not find a version that satisfies the requirement sentence-transfomers (from versions: none)
ERROR: No matching distribution found for sentence-transfomers
解决:
先去下载好pytorch:
pip3 install torch torchvision torchaudio
再去下载transformers:
pip3 install transformers
最后去下载 sentence_tranfomers:
pip3 install sentence-transfomers