Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installing python 3.11 fails #69

Closed
eldar opened this issue Jul 19, 2023 · 1 comment
Closed

Installing python 3.11 fails #69

eldar opened this issue Jul 19, 2023 · 1 comment

Comments

@eldar
Copy link

eldar commented Jul 19, 2023

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
Copy link
Author

eldar commented Jul 20, 2023

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

@eldar eldar closed this as completed Jul 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant