pip install flask — ask PyPI what boxes exist for the chosen version.
Is there a wheel whose tags fit this machine (Python version, ABI, OS/CPU)?
Read the dependency constraints and recurse — then resolve them all simultaneously (the backtracking search of Sheet No. 2, §3).