Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import Error: cannot import name 'DatasetInfo' #3

Open
realRoc opened this issue Mar 12, 2022 · 0 comments
Open

Import Error: cannot import name 'DatasetInfo' #3

realRoc opened this issue Mar 12, 2022 · 0 comments

Comments

@realRoc
Copy link

realRoc commented Mar 12, 2022

第一次接触huggingface系列,按照项目的requirements安装了相关依赖后在使用_load_sbert_model.import_from_string读取模型文件时报错:
ImportError: cannot import name 'DatasetInfo' from 'huggingface_hub.hf_api' (C:\ProgramData\Anaconda3\lib\site-packages\huggingface_hub\hf_api.py)

看了看依赖里面确实缺少了这一个DatasetInfo,且在datasets中也没找到,请问这个如何解决?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant