Is there a way for pip to install only new depende

2020-08-18 04:37发布

问题:

pip install --upgrade -r requirements.txt

repeats the installation process for all the previously installed dependencies which can be a pain when I have a huge list of dependencies (like more than 30?)

Isn't there a way to check an updated requirements.txt and install only specific dependencies that have been included into the requirements.txt file since the previous installation attempt?

I find this to be a real shortcoming of pip (or using pip in virtualenv for that matter). Do not like the repetitive installation nature of pip at all.

回答1:

As mentioned by Piotr in the comments above, if "--upgrade" is not included in the command, already installed python packages are left alone.



标签: python pip