Using Pip, how do I get to update non-updated packages?

When starting Pip with a file requirements.txtwith fixed versions, we get the following error (or the like):

VersionConflict: (solrpy 0.9.1 
(.../lib/python2.6/site-packages/solrpy-0.9.1-py2.6.egg),
    Requirement.parse('solrpy==0.9.3'))

because the version is conflicting. Using pip install -U -r requirements.txtfixes this, but also forces us to download all packages again. One of the nice things about Pip is that he will know what is installed, and not re-download / install.

Is there any way around this? I think what I want is a “soft upgrade” where it only updates packages if they conflict.

+3
source share
2 answers

solrpy :

pip install -U --no-deps solrpy

, , , --no-deps, , , :

pip install -U solrpy

, , requirements.txt.

-1

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


All Articles