Python: Difference between revisions

imported>2gn
m Upgraded mach-nix version from 3.4.0 to 3.5.0 . Micromamba is now in stable channel. Removed old archive link of nixpkgs (This change may make the document less reproducible.)
imported>Tobias.bora
No edit summary
Line 199: Line 199:
</syntaxhighlight>
</syntaxhighlight>


Installing packages with <code>pip</code> that need to compile code or use C libraries will sometimes fail due to not finding dependencies in the expected places. In that case you can use <code>buildFHSUserEnv</code> to make yourself a sandbox that appears like a more typical Linux install. For example if you were working with machine learning code you could use:
Installing packages with <code>pip</code> that need to compile code or use C libraries will sometimes fail due to not finding dependencies in the expected places. In that case you can use <code>buildFHSUserEnv</code> to make yourself a sandbox that appears like a more typical Linux install (or you can also certainly use <code>nix-ld<code> to turn your whole system into a more standard Linux distribution). For example if you were working with machine learning code you could use:


<syntaxhighlight lang="nix">
<syntaxhighlight lang="nix">