@@ -19,7 +19,7 @@ Which Python?
1919
2020You'll need **Python 3.6 or greater ** to run PyGMT.
2121
22- We recommend using the `Anaconda <http ://continuum.io/downloads#all >`__ Python
22+ We recommend using the `Anaconda <https ://www.anaconda.com/distribution >`__ Python
2323distribution to ensure you have all dependencies installed and the ``conda ``
2424package manager available.
2525Installing Anaconda does not require administrative rights to your computer and
@@ -29,14 +29,23 @@ doesn't interfere with any other Python installations in your system.
2929Which GMT?
3030----------
3131
32- You'll need the latest development version available from
33- `the GitHub repository <https://github.com/GenericMappingTools/gmt >`__.
34- PyGMT is based on GMT 6, **which has not yet been officially released **.
32+ PyGMT requires GMT 6 as a minimum, which you can find the latest development version
33+ at `this GitHub repository <https://github.com/GenericMappingTools/gmt >`__.
3534
3635We need the very latest GMT since there are many changes being made to GMT itself in
3736response to the development of PyGMT, mainly the new
38- `modern execution mode <http ://gmt.soest.hawaii.edu/projects/gmt/wiki/Modernization >`__.
37+ `modern execution mode <https ://gmt.soest.hawaii.edu/projects/gmt/wiki/Modernization >`__.
3938
39+ **GMT 6 has not been officially released yet **, but will be soon!
40+ In the meantime, GMT does provide compiled conda packages of their development version
41+ for Linux, Mac and Windows through
42+ `conda-forge <https://anaconda.org/conda-forge/gmt >`__.
43+ Advanced users can also
44+ `build GMT from source <https://github.com/GenericMappingTools/gmt/blob/master/BUILDING.md >`__
45+ instead, which is not so recommended but we would love to get feedback from anyone who
46+ tries.
47+
48+ We recommend following the instructions further on to install GMT 6.
4049
4150Dependencies
4251------------
@@ -53,44 +62,38 @@ The following are optional (but recommended) dependencies:
5362* `IPython <https://ipython.org/ >`__: For embedding the figures in Jupyter notebooks.
5463
5564
56- Installing GMT
57- --------------
58-
59- Unfortunately, you'll have to build GMT from source in order to get PyGMT working.
60- Please follow the `GMT Building Instructions <https://github.com/GenericMappingTools/gmt/blob/master/BUILDING.md >`__.
61-
62- For Windows users, you can also try to install the binaries of
63- GMT development version, available from http://w3.ualg.pt/~jluis/mirone/downloads/gmt.html.
64- Currently, we don't have tests running on Windows yet, so things might be broken.
65- Please report any errors by `creating an issue on Github <https://github.com/GenericMappingTools/pygmt/issues >`__.
66-
67- .. note ::
68-
69- We used to maintain conda packages for the latest GMT. That caused many problems and
70- was very difficult to maintain updated. We have opted to not do that anymore so that
71- we can develop more quickly. Once GMT 6 is officially released, we'll have conda
72- packages available again. Please bear with us.
73-
74- Installing dependencies
75- -----------------------
65+ Installing GMT and other dependencies
66+ -------------------------------------
7667
77- Before installing PyGMT, we must install its dependencies.
68+ Before installing PyGMT, we must install GMT itself along with the other dependencies.
7869The easiest way to do this is using the ``conda `` package manager.
7970We recommend working in an isolated
80- `conda environment <https://conda.io/docs /user-guide/tasks/manage-environments.html >`__
71+ `conda environment <https://conda.io/projects/conda/en/latest /user-guide/tasks/manage-environments.html >`__
8172to avoid issues with competing versions of its dependencies.
8273
83- We can create a new conda environment with Python and all our dependencies installed
74+ First, we must configure conda to get packages from the
75+ `conda-forge channel <https://conda-forge.org/ >`__ (the order is important)::
76+
77+ conda config --prepend channels conda-forge/label/dev
78+ conda config --prepend channels conda-forge
79+
80+ Now we can create a new conda environment with Python and all our dependencies installed
8481(we'll call it ``pygmt `` but you can change it to whatever you want)::
8582
86- conda create --name pygmt python=3.6 pip numpy pandas xarray packaging
83+ conda create --name pygmt python=3.6 pip numpy pandas xarray packaging gmt=6.0.0rc*
8784
8885Activate the environment by running::
8986
90- source activate pygmt
87+ conda activate pygmt
88+
89+ From now on, all commands will take place inside the conda virtual environment and won't
90+ affect your default installation.
91+
92+ .. note ::
9193
92- From now on, all commands will take place inside the environment and won't affect your
93- default installation.
94+ **Currently, this has only been tested to work on Linux and macOS. **
95+ We don't have tests running on Windows yet, so things might be broken.
96+ Please report any errors by `creating an issue on Github <https://github.com/GenericMappingTools/pygmt/issues >`__.
9497
9598Installing PyGMT
9699----------------
0 commit comments