alert-psychiatrist-14102
08/20/2023, 9:08 AMgenerate-lockfiles?
option --use-feature: invalid choice: '2020-resolver' (choose from 'fast-deps', 'truststore', 'no-binary-enable-wheel-cache')gorgeous-winter-99296
08/20/2023, 9:22 AMpip for the Python version you're using? I'm going to guess it's too recent. The flag likely comes from here: https://github.com/pantsbuild/pex/blob/e6c03a4f862e6b7dca13404c254d3623c8020c40/pex/pip/tool.py#L262-L264enough-analyst-54434
08/20/2023, 10:15 AMenough-analyst-54434
08/20/2023, 10:44 AMalert-psychiatrist-14102
08/20/2023, 11:40 AMpython2 for generate-locks (I guess it's because I did not have python3-pip installed).
Anyway - using backend.python.provider.experimental.pyenv solved the issue for me!enough-analyst-54434
08/20/2023, 3:12 PMenough-analyst-54434
08/20/2023, 4:11 PMpants.toml) and what OS? The error actually does make no sense now that I investigate because Pex only allows Python 2.7 to use Pip 20.3.4 which supports --use-feature 2020-resolver.enough-analyst-54434
08/20/2023, 4:12 PM(I guess it's because I did not have python3-pip installed).No, Pex vendors its own Pip and otherwises installs it itself if a
--pip-version is selected that is not the vendored (20.3.4) version. Pex is totally hermetic and does not care about your system setup (or it should be totally hermetic anyhow).alert-psychiatrist-14102
08/20/2023, 8:38 PMalert-psychiatrist-14102
08/20/2023, 8:39 PM