How to install Python pip on Nixos?

7,236

Solution 1

pip is available as a package on NixOS. For example, for the default Python interpreter, the attribute is python.pkgs.pip.

Solution 2

Check the package availability:

$ nix-env -qaP '.*pip.*'

Install the desired version e,g:

$ nix-env -i python3.7-pip-19.0.3

Nix Package Manager Guide : Chapter 19. Main Commands

Share:
7,236

Related videos on Youtube

nolan
Author by

nolan

PHP / Devops by day. Haskell by night. I like Linux, Spacemacs, Dvorak, windows tiling managers. Music production, Bitcoin. Hopefully unconventional.

Updated on September 18, 2022

Comments

  • nolan
    nolan almost 2 years

    I can't seem to find the appropriate package that install's pip on Nixos?

  • Jeff Schaller
    Jeff Schaller about 5 years
    While this link may be a good reference, a good Answer here at Stack Exchange will incorporate the actual steps required.