This is a result from python.section.md and it has a lack of full explanation. For me its kinda reminder how to start.
- Global installation of Python in
configuration.nix
inenvironment.systemPackages
with e.g.(python36.withPackages(ps: with ps; [ numpy ]))
here i chose python 3.6 any ohter version should work that way. - Create a nix expression like
python.nix
with all dependencies for Python:
with import <nixpkgs> {};
(python35.withPackages (ps: [ps.numpy ps.toolz])).env