Skip to content

Commit 1b091b5

Browse files
committed
Add pip source install step in readme
1 parent 1ba7042 commit 1b091b5

1 file changed

Lines changed: 17 additions & 3 deletions

File tree

README.rst

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,23 @@ To install using ``pip`` into your ``diffpy.pdffit2_env`` environment, type ::
108108

109109
pip install diffpy.pdffit2
110110

111-
If you prefer to install from sources, after installing the dependencies, obtain the source archive from
112-
`GitHub <https://github.com/diffpy/diffpy.pdffit2/>`_. Once installed, ``cd`` into your ``diffpy.pdffit2`` directory
113-
and run the following ::
111+
If you prefer to install from sources, obtain the source archive from
112+
`GitHub <https://github.com/diffpy/diffpy.pdffit2/>`_.
113+
114+
Ensure that you have a C++ compiler and the necessary dependencies installed mentioned above:
115+
116+
For macOS: ::
117+
118+
brew install gsl
119+
brew install gcc
120+
121+
For Ubuntu: ::
122+
123+
sudo apt-get update
124+
sudo apt-get install libgsl-dev
125+
sudo apt install g++
126+
127+
Next, ``cd`` into your ``diffpy.pdffit2`` directory and run the following command: ::
114128

115129
pip install .
116130

0 commit comments

Comments
 (0)