【发布时间】:2019-10-10 21:38:15
【问题描述】:
我的requirements.txt:
google-api-python-client>=1.6.2
httplib2==0.9.2
...
在这种情况下google-api-python-client 安装httplib2=0.14.0。但我会在下一行被旧版本覆盖。
当然,在这种情况下,我可以采取行动。但是在某些情况下,一个库依赖于另一个库,依赖于另一个库等等。
所以我想知道是否有办法告诉pip 始终保留最新版本的库。
点赞:pip install -r --keep-most-recent requirements.txt
【问题讨论】:
标签: python pip dependencies