我正在按照本指南 https://youtu.be/rRwflsS67ow 大约 11:55 我收到一个错误,我不知道如何解决(或者我是否应该解决它)。就是这样:
Downloading tf_models_official-2.5.1-py2.py3-none-any.whl (1.6 MB)
---------------------------------------- 1.6/1.6 MB 816.4 kB/s eta 0:00:00
INFO: pip is looking at multiple versions of sacrebleu to determine which version is compatible with other requirements. This could take a while.
Collecting sacrebleu<=2.2.0
Downloading sacrebleu-2.1.0-py3-none-any.whl (92 kB)
---------------------------------------- 92.0/92.0 kB 174.4 kB/s eta 0:00:00
INFO: pip is looking at multiple versions of pyparsing to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of <Python from Requires-Python> to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of object-detection to determine which version is compatible with other requirements. This could take a while.
ERROR: Cannot install object-detection and object-detection==0.1 because these package versions have conflicting dependencies.
The conflict is caused by:
tf-models-official 2.11.5 depends on tensorflow-addons
tf-models-official 2.11.4 depends on tensorflow-addons
tf-models-official 2.11.3 depends on tensorflow-addons
tf-models-official 2.11.2 depends on tensorflow-addons
tf-models-official 2.11.0 depends on opencv-python-headless==4.5.2.52
object-detection 0.1 depends on sacrebleu<=2.2.0
tf-models-official 2.10.1 depends on sacrebleu==2.2.0
tf-models-official 2.10.0 depends on opencv-python-headless==4.5.2.52
tf-models-official 2.9.2 depends on tensorflow-addons
tf-models-official 2.9.1 depends on tensorflow-addons
tf-models-official 2.9.0 depends on tensorflow-addons
tf-models-official 2.8.0 depends on tensorflow-addons
tf-models-official 2.7.2 depends on tensorflow-addons
tf-models-official 2.7.1 depends on tensorflow-addons
tf-models-official 2.7.0 depends on tensorflow-addons
tf-models-official 2.6.1 depends on tensorflow-addons
tf-models-official 2.6.0 depends on tensorflow-addons
tf-models-official 2.5.1 depends on tensorflow-addons
To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency conflict
ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts
我现在该怎么办?我查看了错误消息给我的链接,但我真的不明白它在说什么,所以这就是我来这里的原因。另请注意:这是我第一次使用 anaconda、tensorflow 和任何与机器学习相关的东西(我对 CLI 也不是很熟悉,只是在基础水平上)。
如果你知道如何解决这个问题,请告诉我。