Python: Difference between revisions

imported>Tobias.bora
No edit summary
imported>Firestack
m close `code` tag introduced in last edit
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 (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:
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">