問題是依賴項解析器解決沖突的時間太長。 幾個小時后雄人,它不斷重復(fù)這句話長達(dá)數(shù)小時(我甚至讓安裝運(yùn)行了兩天兩夜)
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: This is taking longer than usual. You might need to provide the dependency resolver with stricter constraints to reduce runtime. If you want to abort this run you can press ctrl + c to do so.
我的解決方案是將pip重新綁定到20.2版本,這是使用舊解析器的最后一個版本各墨。這超過了我的構(gòu)建在使用PIP21.1.1下的新解析器時遇到的瓶頸
第二種可能有效(未經(jīng)測試)的方法是使用標(biāo)志:
使用棄用的=舊版沖突解決程序
它似乎是在20.3切換到新的分解器時添加的茄猫。這將允許新的pip版本帶來好處,直到回溯問題得到解決
1.pip相關(guān)命令
1.切換 pip 版本
python -m pip install pip==20.2
2.查看 pip 版本
pip --version