Is there a way to install to install only the new dependencies in the updated requirements file. Txt

pip install --upgrade -r requirements.txt 

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

Is there no way to check the updated requirements file .txt and install only certain dependencies that have been included in the requirements.txt file since the previous installation attempt?

I believe this is a real pip flaw (or, for example, using pip in virtualenv). I do not like the repeating nature of the pip installation.

+6
source share
1 answer

As mentioned in Piotr comments, if "-upgrade" is not included in the command, already installed python packages remain valid.

+10
source

Source: https://habr.com/ru/post/907094/


All Articles