@@ -20,12 +20,12 @@ is available in the doc/Farrow-jpcm-2007.pdf paper.
2020REQUIREMENTS
2121------------------------------------------------------------------------
2222
23- PDFgui requires Python 2.7 and several third-party libraries
24- that are used by PDFgui and its components.
23+ PDFgui requires Python 3.7, 3.8, 3.9, or 2.7 and several third-party
24+ libraries that are used by PDFgui and its components.
2525
2626* setuptools - tools for installing Python packages
2727* wxpython - graphical user interface toolkit for Python
28- * NumPy - library for scientific computing with Python
28+ * numpy - library for scientific computing with Python
2929* matplotlib - Python 2D plotting library
3030* diffpy.pdffit2 - computational engine for PDFgui,
3131 https://github.com/diffpy/diffpy.pdffit2
@@ -36,34 +36,31 @@ that are used by PDFgui and its components.
3636
3737We recommend to use `Anaconda Python <https://www.anaconda.com/download >`_
3838which allows to conveniently install PDFgui and all its software
39- dependencies with a single command. For other Python distributions
40- it is necessary to install the required software separately. As an
41- example, on Ubuntu Linux some of the required software can be
42- installed using ::
43-
44- sudo apt-get install \
45- python-setuptools python-wxtools python-numpy \
46- python-matplotlib
47-
48- To install the remaining packages see the installation instructions
49- at their respective web pages.
39+ dependencies with a single command.
5040
41+ Please note that the Python3 PDFgui will read .ddp3 files. It is also
42+ possible for it to read .ddp files that were saved by the Python2 PDFgui
43+ but it will sometimes fail to read these. We are working on a solution
44+ that will be available in a future version.
5145
5246INSTALLATION
5347------------------------------------------------------------------------
5448
5549The preferred method is to use Anaconda Python and install from the
56- "diffpy " channel of Anaconda packages ::
50+ "conda-forge " channel of Anaconda packages. ` pdfgui ` can be installed with ` conda ` ::
5751
58- conda config --add channels diffpy
59- conda install diffpy.pdfgui
52+ conda install -c conda-forge diffpy.pdfgui
6053
6154PDFgui can be then started from a terminal ("Anaconda Prompt" on
6255Windows) by executing the "pdfgui" program. An alternative
6356method on Windows is to start PDFgui through the DiffPy start menu.
6457
6558If you don't use Anaconda or prefer to install from sources, make
66- sure the required software is all in place and run ::
59+ sure the required software is all in place ::
60+
61+ conda install -c conda-forge diffpy.utils diffpy.pdffit2 matplotlib wxpython
62+
63+ Then you are ready to install diffpy.pdfgui from source codes::
6764
6865 python setup.py install
6966
@@ -78,16 +75,36 @@ changing to the HOME directory and running ::
7875
7976 python -m diffpy.pdfgui.tests.rundeps
8077
78+ To use PDFgui, you can simply type `pdfgui `, or run the following command ::
79+
80+ python diffpy.pdfgui/src/diffpy/pdfgui/application/pdfgui.py
81+
82+ If it shows some error like "This program needs access to the screen.". For Mac, you could install `python.app ` from conda
83+ (`conda install python.app `), then run as follows ::
84+
85+ python.app diffpy.pdfgui/src/diffpy/pdfgui/application/pdfgui.py
86+
8187With Anaconda PDFgui can be later upgraded to the latest released
8288version using ::
8389
84- conda update diffpy.pdfgui
90+ conda update -c conda-forge diffpy.pdfgui
8591
8692With other Python distributions the program can be upgraded to
8793the latest version as follows ::
8894
8995 easy_install --upgrade diffpy.pdfgui
9096
97+ If you would like to use other Python distributions except Anaconda,
98+ it is necessary to install the required software separately. As an
99+ example, on Ubuntu Linux some of the required software can be
100+ installed using ::
101+
102+ sudo apt-get install \
103+ python-setuptools python-wxtools python-numpy \
104+ python-matplotlib
105+
106+ To install the remaining packages see the installation instructions
107+ at their respective web pages.
91108
92109Other software
93110````````````````````````````````````````````````````````````````````````
@@ -97,6 +114,7 @@ structures. We have tested with several structure viewers such as
97114
98115* AtomEye, http://li.mit.edu/A/Graphics/A/
99116* PyMol, https://www.pymol.org
117+ * VESTA, http://jp-minerals.org/vesta/en/
100118
101119Other viewers should work as well, as long as they understand one of
102120the output structure formats supported by PDFgui.
0 commit comments