Skip to content

Commit 73f32a5

Browse files
DOC: update installation steps.
1 parent 17437a6 commit 73f32a5

1 file changed

Lines changed: 15 additions & 9 deletions

File tree

README.rst

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -57,15 +57,9 @@ INSTALLATION
5757
------------------------------------------------------------------------
5858

5959
The preferred method is to use Anaconda Python and install from the
60-
"conda-forge" channel of Anaconda packages. The `conda-forge` channel
61-
can be achieved by adding `conda-forge` to your channels with ::
60+
"conda-forge" channel of Anaconda packages. `pdfgui` can be installed with `conda` ::
6261

63-
conda config --add channels conda-forge
64-
conda config --set channel_priority strict
65-
66-
Once the `conda-forge` channel has been enabled, `diffpy.pdffit2` can be installed with `conda` ::
67-
68-
conda install diffpy.pdffit2
62+
conda install -c conda-forge diffpy.pdfgui
6963

7064
PDFgui can be then started from a terminal ("Anaconda Prompt" on
7165
Windows) by executing the "pdfgui" program. An alternative
@@ -74,7 +68,10 @@ method on Windows is to start PDFgui through the DiffPy start menu.
7468
If you don't use Anaconda or prefer to install from sources, make
7569
sure the required software is all in place ::
7670

77-
pip install wxpython==4.0.7 diffpy.utils diffpy.pdffit2 matplotlib
71+
pip install wxpython==4.0.7
72+
conda install matplotlib
73+
conda install -c conda-forge diffpy.utils
74+
pip install diffpy.pdffit2
7875

7976
Then you are ready to install diffpy.pdfgui ::
8077

@@ -91,6 +88,15 @@ changing to the HOME directory and running ::
9188

9289
python -m diffpy.pdfgui.tests.rundeps
9390

91+
To use PDFgui, you can simply type `pdfgui`, or run the following command ::
92+
93+
python diffpy.pdfgui/src/diffpy/pdfgui/application/pdfgui.py
94+
95+
If it shows some error like "This program needs access to the screen.". For Mac, you could install `python.app` from conda
96+
(`conda install python.app`), then run as follows ::
97+
98+
python.app diffpy.pdfgui/src/diffpy/pdfgui/application/pdfgui.py
99+
94100
With Anaconda PDFgui can be later upgraded to the latest released
95101
version using ::
96102

0 commit comments

Comments
 (0)