[Nix-dev] Cannot import scipy

Luca Bruno lethalman88 at gmail.com
Sat Dec 6 16:38:09 CET 2014


First of all, nix-env -i env-scipy installs an environment, that you must
load with load-env-scipy. Second, you better add python to the buildInputs.

On Sat, Dec 6, 2014 at 4:18 PM, Tom Dimiduk <tom at dimiduk.net> wrote:

> I am running nixos-unstable, and having trouble getting scipy to import.
>
> I attempted to follow the instructions on the nixos python wiki page:
> https://nixos.org/wiki/Python
>
> and have an entry in my config.nix:
>
>     myScipyEnv = pkgs.myEnvFun {
>       name = "scipy";
>       buildInputs = with pkgs.python27Packages; [
>         scipy
>       ];
>     };
>
> Then I did:
>
> nix-env -i env-scipy
>
> But importing scipy fails with:
>
> ImportError: No module named scipy
>
> Is this the correct way to use scipy? This route has worked for me
> with other python packages.
>
> Thanks,
> Tom
> _______________________________________________
> nix-dev mailing list
> nix-dev at lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>



-- 
NixOS Linux <http://nixos.org>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20141206/f6ba63eb/attachment.html 


More information about the nix-dev mailing list