![](/img/trans.png)
[英]Django got error cannot import name AppRegistryNotReady while importing session_security
[英]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.