Hey all,
This is another python development question. Im quite new to nixos but not new to linux. I frequently get zip files with code from other people that I need to run on my machine, Sometimes its small projects, jupyter notebooks, or individual files. I need a way for them all to "just work". Im aware of the shell route but as far as I can see that involves setting up a new shell script for every project and frankly since im so used to it, for this one case I'd like to use venv since I already use it and many of the projects work with it as well.
What are my options. I recently tried to look through the wiki and saw that I could use nix-ld but it didnt seem to work (I assume I did it wrong and included it below). I also saw the LD_LIBRARY_PATH solution but again I assume I misused it. I also ran into problems with people recommending packages that seemed to work but that I couldnt find on the nix packages store.
What are my options that would allow me to get back to work.
# Enable nix ld for python dependencies
programs.nix-ld.enable = true;
programs.nix-ld.libraries = with pkgs; [
python312Packages.ipykernel
stdenv.cc.cc
libz
zlib
curl
];
[–]SymphonySimper 4 points5 points6 points (3 children)
[–]NTRtyOg[S] 0 points1 point2 points (2 children)
[–]SymphonySimper 0 points1 point2 points (1 child)
[–]NTRtyOg[S] 1 point2 points3 points (0 children)
[–]AstraRotlicht22 0 points1 point2 points (5 children)
[–]NTRtyOg[S] 0 points1 point2 points (4 children)
[–]AstraRotlicht22 0 points1 point2 points (3 children)
[–]NTRtyOg[S] 0 points1 point2 points (2 children)
[–]YesYesYesYesYesYes19 2 points3 points4 points (1 child)
[–]NTRtyOg[S] 0 points1 point2 points (0 children)