Hey guys sorry if i am bothering with many questions but why can’t i run executables from an conda env that isolated and uses its own python version. I may not still understand completely how Nix works could you please clarify a little why i am receiving such error even when using the command clear in an activated conda env also what is the nix way to do this even though it may be time consuming method and what is a work around ?
(env) ➜ Data-science clear
Could not start dynamically linked executable: clear
NixOS cannot run dynamically linked executables intended for generic
linux environments out of the box. For more information, see:
https://nix.dev/permalink/stub-ld
(env) ➜ Data-science jupyter-notebook
Could not start dynamically linked executable: /home/darkuni/.conda/envs/env/bin/python
NixOS cannot run dynamically linked executables intended for generic
linux environments out of the box. For more information, see:
https://nix.dev/permalink/stub-ld
dynamically linked executables link to libraries where they usually are on linux systems
nixos uses a different approach by symlinking and including paths from the nix store in environment variables. This is why binaries compiled for a “normal” linux distro do not work on nix out of the box. But as the error message already says, you can use nix-ld to still run those executables.
If it is in a program that calls these dynamically linked executables on it’s own you could try distrobox
Without wanting to sound toxic or anything but all this was already provided to you by the error message
if you follow the link mentioned in the error you would already know what i just told you and also how to fix it
I still hope my answer was helpful
feel free to send follow up questions
Thank you for taking the time to answer, i have actually read things from the docs and have an idea of how things work the reason i asked the question was specifically to know how folk who do data-science or ai manage this kind of things on Nixos. I am liking the distro and the new concepts just looking for tips and advices from more experienced devs.