cannot import NAME 'CommitOperationAdd' from 'huggingface_hub' (unknown location)

(图片来源网络,侵删)
错误提示:
(torchcpupy38) D:\Auser>Python Python 3.8.13 (default, Mar 28 2022, 06:59:08) [MSC v.1916 64 bit (amd64)] :: anaconda, Inc. on win32 Type "help", "copyright", "credits" or "liceNSE" for more information. >>> import transformers 2023-01-07 21:01:44.682637: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'cuDart64_110.dll'; dlerror: cudart64_110.dll not found 2023-01-07 21:01:44.688424: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your Machine. Traceback (most recent call last): File "", line 1, in File "D:\AworkStation\Anaconda3\envs\torchcpupy38\lib\site-packages\transformers\__init__.py", line 30, in from . import dependency_versions_check File "D:\AworkStation\Anaconda3\envs\torchcpupy38\lib\site-packages\transformers\dependency_versions_check.py", line 17, in from .utils.versions import require_version, require_version_core File "D:\AworkStation\Anaconda3\envs\torchcpupy38\lib\site-packages\transformers\utils\__init__.py", line 59, in from .hub import ( File "D:\AworkStation\Anaconda3\envs\torchcpupy38\lib\site-packages\transformers\utils\hub.py", line 32, in from huggingface_hub import ( ImportError: cannot import name 'CommitOperationAdd' from 'huggingface_hub' (unknown location)
解决方式:

(图片来源网络,侵删)
(torchcpupy38) D:\Auser>conda install -c dglteam dgl
(torchcpupy38) D:\Auser>pip install transformers[torch]
(torchcpupy38) D:\Auser>conda install huggingface_hub