Python: Difference between revisions

Gdforj (talk | contribs)
Overhaul the Python page to make it more up to date and more accessible to Python users who have never used Nix.
Using micromamba: Now the Micromamba target prefix as example won't be recreated every time. And in the case that it is, there won't be a prompt.
Line 136: Line 136:
       eval "$(micromamba shell hook --shell=posix)"
       eval "$(micromamba shell hook --shell=posix)"
       export MAMBA_ROOT_PREFIX=${builtins.getEnv "PWD"}/.mamba
       export MAMBA_ROOT_PREFIX=${builtins.getEnv "PWD"}/.mamba
       micromamba create -q -n my-mamba-environment
       if ! test -d $MAMBA_ROOT_PREFIX/envs/my-mamba-environment; then
          micromamba create --yes -q -n my-mamba-environment
      fi
       micromamba activate my-mamba-environment
       micromamba activate my-mamba-environment
       micromamba install --yes -f conda-requirements.txt -c conda-forge
       micromamba install --yes -f conda-requirements.txt -c conda-forge