更新时间:2022-05-23 22:37:35
我相信这是目前正在解决的一个众所周知的问题.一周前的消息:http://pyfound.blogspot.com/2020/03/new-pip-resolver-to-roll-out-this-year.html
I believe this is a well known problem that is currently being worked on. Message from one week ago: http://pyfound.blogspot.com/2020/03/new-pip-resolver-to-roll-out-this-year.html
与此同时,可以采取一些措施来尝试缓解此类问题:
In the meantime there are some measures that can be taken to try and mitigate this kind of issues:
a
可以在 b
之前列出 c
)requirements.txt
或 constraints.txt
文件a
could list c
before b
)requirements.txt
or constraints.txt
file今天似乎已经可以测试 pip 的未来依赖解析器:
It appears to be already possible to test pip's future dependency resolver today:
path/to/python -m pip install --unstable-feature=resolver ...
在某种程度上,似乎也可以通过 pip check
命令在当前版本或 pip 中测试此依赖项解析器.
In a way it also seems to be possible to somewhat test this dependency resolver in current releases or pip via the pip check
command.
有关该主题的更多参考资料:
Some more references on the topic: