Skip to content

Recommend mambaforge + mamba in the installation instructions and contributing guides #2368

Closed

Description

@seisman

In the installation instructions, we recommend using Anaconda:

We recommend using the Anaconda Python distribution to ensure you have all dependencies installed and the conda package manager is available. Installing Anaconda does not require administrative rights to your computer and doesn’t interfere with any other Python installations on your system.

Here is a comparison between Anaconda and miniconda: https://stackoverflow.com/a/45421527.

From my own experience, Anaconda packages too many packages by default, which causes slow installation, large disk spaces and potential package conflicts.

I wonder if we should recommend miniconda instead.

Activity

  1. added
    question
    on Feb 15, 2023
  2. maxrjones commented on Feb 15, 2023

    @maxrjones
    Member

    Yes, I think we should recommend miniconda or micromamba.

    IMO we should also recommend mamba for contributors in https://www.pygmt.org/latest/contributing.html#setting-up-your-environment, since the conda solver can get tedious with the number of development dependencies that we have.

  3. added
    documentation
    and removed
    question
    on Feb 16, 2023
  4. added this to the 0.9.0 milestone on Feb 16, 2023
  5. added
    help wanted
    on Feb 16, 2023
  6. seisman commented on Feb 16, 2023

    @seisman
    MemberAuthor

    IMO we should also recommend mamba for contributors in pygmt.org/latest/contributing.html#setting-up-your-environment, since the conda solver can get tedious with the number of development dependencies that we have.

    I agree.

    Yes, I think we should recommend miniconda or micromamba.

    micromamba is not a good option, because (https://mamba.readthedocs.io/en/latest/user_guide/micromamba.html):

    Still at early stage, it’s main usage is in continous integration pipelines: since it’s a single executable, it reduces dramatically bandwidth usage and provide fast operations.

  7. weiji14 commented on Feb 17, 2023

    @weiji14
    Member

    Related thread at https://discourse.pangeo.io/t/mamba-mature-enough/3154/4 on how mamba is pretty stable already. Agree that micromamba isn't a good option (mostly because you'd have to call commands using micromamba install instead of mamba install), but I'd prefer mambaforge instead of miniconda as recommended by https://mamba.readthedocs.io/en/stable/installation.html#fresh-install.

  8. seisman commented on Feb 17, 2023

    @seisman
    MemberAuthor

    Related thread at discourse.pangeo.io/t/mamba-mature-enough/3154/4 on how mamba is pretty stable already. Agree that micromamba isn't a good option (mostly because you'd have to call commands using micromamba install instead of mamba install), but I'd prefer mambaforge instead of miniconda as recommended by mamba.readthedocs.io/en/stable/installation.html#fresh-install.

    Sounds great. mambaforge + mamba is the way to go.

  9. removed
    help wanted
    on Feb 18, 2023
  10. assigned and unassigned on Feb 18, 2023
  11. added
    help wanted
    on Feb 18, 2023
  12. changed the title [-]Recommend miniconda instead of Anaconda in the installation instructions?[/-] [+]Recommend mambaforge + mamba in the installation instructions and contributing guides[/+] on Feb 22, 2023
  13. weiji14 commented on Mar 2, 2023

    @weiji14
    Member

    Kinda unrelated, but I just found out about https://prefix.dev/blog/online_environment_solving today and was playing with solving a PyGMT development environment (conda-lock.yml file) at https://prefix.dev/envs/weiji14/pygmt. This is today's resolved environment at https://prefix.dev/envs/weiji14/pygmt/285fy5jawbs0, installable using micromamba create -f https://prefix.dev/envs/weiji14/pygmt/285fy5jawbs0/conda-lock.yml -n pygmt:

    image

    It's still a very young project built by the mamba folks, but it might be useful for your own projects if you ever need to quickly test out solving an environment without messing with your local environment, or do cross-platform solves. They also do versioning of generated conda-lock.yml, which might be useful for reproducibility.

    P.S. Couldn't get linux-aarch64 nor linux-ppc64le to solve for some reason, but that's for another issue.

  14. removed
    help wanted
    on Mar 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentation

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions