pip 20.3, released on November 30, 2020, makes its new dependency resolver the default for Python 3 users and changes how shared constraints files affect installation. A central version pin can narrow the packages pip considers, but it cannot overrule an application's declared requirements. Teams that used constraints to force a conflicting combination through a build need to reconcile those declarations. Python 2 retains the legacy resolver by default in this release. [S2][S3]

Putting a package in a constraints file does not tell pip to install it. The pip guide describes an organization-wide constraints file as a way to apply a common version choice wherever a project needs that package. A build owner should therefore keep each project's installation requirements separate from the organization's version limits. The central file is not the application's installation list. [S2]

Editable installs do not escape the rules. With pip 20.3, pointing an editable requirement at a local source directory does not make version specifiers or constraints disappear. If the directory's version conflicts with a pinned requirement, pip reports that it cannot satisfy both. The released migration guide also rules out unnamed requirements, links and extras in constraints files. For a local checkout, reconcile its version and the project's declarations rather than assume that editable status overrides the mismatch. [S2]

Existing environments can change, too. The 20.3 guide says pip may reinstall a package, moving its version up or down, when necessary to satisfy constraints; no additional command-line option is required. It also warns that hash-checking mode requires every requirement to use an exact == version match and may not work well with constraints. That warning is a reason to test the actual hashed requirements file, not a claim that every such combination fails. [S2]

Successful resolution does not guarantee a consistent environment. The pip 20.3 guide says an install command considers the packages being installed in that command and may break packages already installed; installing two packages separately can produce a different result from requesting them together. Its migration advice is to run pip check and exercise the project's build and test process with the new resolver. For teams sharing a constraints file, that means checking both a fresh build and an update to an existing environment. A clean dependency check does not replace application tests. [S2]

Source documents

  1. pip 20.3 User Guide: constraints files and resolver migrationhttps://raw.githubusercontent.com/pypa/pip/20.3/docs/html/user_guide.rst
  2. pip 20.3 release changelog, November 30, 2020https://raw.githubusercontent.com/pypa/pip/20.3/NEWS.rst