繁体   English   中英

导入 sentencetransformer 时出错

[英]Got the error while importing sentencetransformer

无法解决这个错误,请有人帮忙

试过这个... from sentence_transformers import SentenceTransformer

它给了我这个错误......

ImportError: numpy>=1.17 is required for a normal functioning of this module, but found numpy==1.16.5.
Try: pip install transformers -U or pip install -e '.[dev]' if you're working with git main

我尝试更新 numpy (1.21.5) 然后我意识到 numpy-base 版本低于 1.17,我更新了 numpy-base 版本并解决了。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM