nix-env -iA nixpkgs.python311
it works
But when i do a
nix-shell -p nixpkgs.python311
or a
nix-shell -p python3-3.11.1
visibly there are problem in the name and arg
nix-shell -p python3-3.11.1 error: undefined variable 'python3-3'
at «string»:1:107:
1| {...}@args: with import <nixpkgs> args; (pkgs.runCommandCC or pkgs.runCommand) "shell" { buildInputs = [
(python3-3.11.1) ]; } "" | ^ (use '--show-trace' to show detailed location information)
Regards
nix-shell -p python311Packages.python
Maybe you have some mess in your channel/names/NIX_PATH? – Vladimír Čunát Mar 16 '23 at 15:22