pip broken version check with Nix
pip 22.2.2 is not able to properly identify pip executable location when installed on a separate directory (which is the case for Nix).
This is breaking any pip install.
This error has been patched on the newly released 23.0 version of pip.
This version is not yet available in Nix, I will probably submit a MR as this is a quite serious bug affecting Nix itself.
See further discussions in NixOS issue and pip issue I created to document this problem.
Known workaround for kitt
Disable pip version check using a custom env variable in your config file :
[[workspace.envs]]
name = "PIP_DISABLE_PIP_VERSION_CHECK"
value = "1"
.. or just run pip with --disable-pip-version-check flag.
pip version update is planned in https://github.com/NixOS/nixpkgs/pull/198024