問(wèn)題是依賴(lài)項(xiàng)解析器解決沖突的時(shí)間太長(zhǎng)。 幾個(gè)小時(shí)后,它不斷重復(fù)這句話長(zhǎng)達(dá)數(shù)小時(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è)版本。這超過(guò)了我的構(gòu)建在使用PIP21.1.1下的新解析器時(shí)遇到的瓶頸
第二種可能有效(未經(jīng)測(cè)試)的方法是使用標(biāo)志:
使用棄用的=舊版沖突解決程序
它似乎是在20.3切換到新的分解器時(shí)添加的。這將允許新的pip版本帶來(lái)好處,直到回溯問(wèn)題得到解決
1.pip相關(guān)命令
1.切換 pip 版本
python -m pip install pip==20.2
2.查看 pip 版本
pip --version