kitt icon indicating copy to clipboard operation
kitt copied to clipboard

pip broken version check with Nix

Open senges opened this issue 3 years ago • 1 comments

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.

senges avatar Nov 02 '22 21:11 senges

pip version update is planned in https://github.com/NixOS/nixpkgs/pull/198024

senges avatar Nov 03 '22 12:11 senges