Python: Difference between revisions

imported>Poelzi
mNo edit summary
imported>InLaw
m pip
Line 90: Line 90:
=== mach-nix ===
=== mach-nix ===


Install the package <code>nix-env -if https://github.com/DavHau/mach-nix/tarball/3.1.1 -A mach-nix</code> and run  
Install the package  
<code>nix-env -if https://github.com/DavHau/mach-nix/tarball/3.1.1 -A mach-nix</code>  
or
<code>pip install git+git://github.com/DavHau/mach-nix@3.1.1</code>
and run  
<syntaxhighlight lang="shell">
<syntaxhighlight lang="shell">
mach-nix env ./env -r requirements.txt
mach-nix env ./env -r requirements.txt
# This will generate the python environment into ./env. To activate it, execute:
# This will generate the python environment into ./env. To activate it, execute:
nix-shell ./env
nix-shell ./env
</syntaxhighlight>
or
<syntaxhighlight lang="shell">
# nix.extraOptions = ''  experimental-features = nix-command flakes    '';
nix-shell -p nixFlakes --run "nix run github:davhau/mach-nix#with.ipython.geopandas --show-trace "
</syntaxhighlight>
</syntaxhighlight>


cmd-line tool:
<syntaxhighlight lang="shell">
<syntaxhighlight lang="shell">
let
let
Line 112: Line 122:
}
}
</syntaxhighlight>
</syntaxhighlight>
Please have a look at more [https://github.com/DavHau/mach-nix/blob/master/examples.md examples]
Please have a look at more [https://github.com/DavHau/mach-nix/blob/master/examples.md examples].


=== conda ===
=== conda ===