简体   繁体   English

导入 sentencetransformer 时出错

[英]Got the error while importing sentencetransformer

Unable to solve this error, somebody plz help无法解决这个错误,请有人帮忙

Tried this... from sentence_transformers import SentenceTransformer试过这个... from sentence_transformers import SentenceTransformer

and it gaved me this error...它给了我这个错误......

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

I tried to update numpy (1.21.5) then I realized that numpy-base version is below 1.17, I updated numpy-base version and it resolved.我尝试更新 numpy (1.21.5) 然后我意识到 numpy-base 版本低于 1.17,我更新了 numpy-base 版本并解决了。

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

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