.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "auto_examples/prep/ex_prep_03_mamba.py" .. LINE NUMBERS ARE GIVEN BELOW. .. only:: html .. note:: :class: sphx-glr-download-link-note :ref:`Go to the end ` to download the full example code. .. rst-class:: sphx-glr-example-title .. _sphx_glr_auto_examples_prep_ex_prep_03_mamba.py: Using Mamba to get Python ========================= *::NOTE::* If the previous python setup worked, do not do this example. *::NOTE::* This is just a backup. Sometimes machines are locked down. In that case, use your own package manager. On these machines, we can easily use micromamba. This is not a tutorial on micromamba, and I am going to use a fast and dirty approach to get just what we need. .. code-block:: bash mkdir -p micromamba pushd micromamba wget -qO- https://micromamba.snakepit.net/api/micromamba/linux-64/latest | tar -xvj bin/micromamba popd micromamba/bin/micromamba install python==3.12 .local/share/mamba/bin/python -m venv ~/py312 .. _sphx_glr_download_auto_examples_prep_ex_prep_03_mamba.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: ex_prep_03_mamba.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: ex_prep_03_mamba.py ` .. container:: sphx-glr-download sphx-glr-download-zip :download:`Download zipped: ex_prep_03_mamba.zip ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_