DavHau / nix-portable

Nix - Static, Permissionless, Installation-free, Pre-configured
MIT License
904 stars 33 forks source link

Installing python 3.11 fails #69

Closed eldar closed 1 year ago

eldar commented 1 year ago

Hi, thank you for developing this project,this is the only way I can use nix on CentOS 7. I was able to install nix-portable and I am trying to follow tutorials on setting up simple environments for python:

$ nix-shell -p 'python311.withPackages(ps: with ps; [ numpy toolz ])'
error: undefined variable 'python311'

       at «string»:1:107:

            1| {...}@args: with import <nixpkgs> args; (pkgs.runCommandCC or pkgs.runCommand) "shell" { buildInputs = [ (python311.withPackages(ps: with ps; [ numpy toolz ])) ]; } ""

The same command works on the multi-user installation of nix on a computer where I do have sudo access. I was able to run nix-shell -p python3 via nix-portable though which installs python 3.8, so I am not quite sure what exactly is wrong in the first example. On a different note, how do I update built-in nix to be more up to date (I downloaded v009 from January last year)?

eldar commented 1 year ago

Python 3.11 is not available in the repositories shipped with the binary package, so not a bug.