ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
transformers 4.7.0 requires huggingface-hub==0.0.8, but you have huggingface-hub 0.4.0 which is incompatible.
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
sentence-transformers 2.2.2 requires huggingface-hub>=0.4.0, but you have huggingface-hub 0.0.8 which is incompatible.
调整版本:完美解决
pip install transformers==4.10.0 -i https://pypi.tuna.tsinghua.edu.cn/simple