The conflict is caused by: fairseq 0.12.2 depends on omegaconf<2.1 hydra-core 1.0.7 depends on omegaconf<2.1 and >=2.0.5
原因:安装fairseq
时遇到了依赖冲突的问题。具体来说,fairseq
要求omegaconf
版本小于2.1,而另一个依赖hydra-core
要求omegaconf
版本大于等于2.0.5且小于2.1。这实际上是一个版本范围内的冲突,因为没有符合两个条件的版本。
安装:
pip install omegaconf==2.0.5
pip install fairseq==0.12.2
但是直接安装上述可能发生会运行缓慢或者报错。
解决办法:将pip指定到24.0版本
python.exe -m pip install pip==24.0
错误如下:
版本指定到24.0:
再来安装omegaconf和fairseq:
轻松拿下,下课。