@@ -73,6 +73,10 @@ non-editable way, use one of the following commands to install pvlib-python::
73
73
# best option if you know what you are doing
74
74
pip install pvlib
75
75
76
+ # get pvlib and optional dependencies from the Python Package Index
77
+ # another option if you know what you are doing
78
+ pip install pvlib[optional]
79
+
76
80
If your system complains that you don't have access privileges or asks
77
81
for a password then you're probably trying to install pvlib into your
78
82
system's Python distribution. This is usually a bad idea and you should
@@ -163,9 +167,9 @@ referred to as *conda environments*, but they're the same for our purposes.
163
167
#. **Create ** a new conda environment for pvlib and pre-install
164
168
the required packages into the environment:
165
169
``conda create --name pvlibdev python pandas scipy ``
166
- #. **Activate ** the new conda environment: ``source activate pvlibdev ``
170
+ #. **Activate ** the new conda environment: ``conda activate pvlibdev ``
167
171
#. **Install ** additional packages into your development environment:
168
- ``conda install jupyter ipython matplotlib seaborn pytest nose flake8 ``
172
+ ``conda install jupyter ipython matplotlib pytest nose flake8 ``
169
173
170
174
The `conda documentation <https://conda.io/docs/index.html >`_ has more
171
175
information on how to use conda virtual environments. You can also add
@@ -181,10 +185,12 @@ Good news -- installing the source code is the easiest part!
181
185
With your conda/virtual environment still active...
182
186
183
187
#. **Install ** pvlib-python in "development mode" by running
184
- ``pip install -e /path/to/your/pvlib-python ``.
185
- You remember this path from the clone step, right? It's probably
186
- something like ``C:\Users\%USER%\Documents\GitHub\pvlib-python ``
187
- (Windows) or ``/Users/%USER%/Documents/pvlib-python `` (Mac).
188
+ ``pip install -e . `` from within the directory you previously cloned.
189
+ Consider installing pvlib using ``pip install -e .[all] `` so that
190
+ you can run the unit tests and build the documentation.
191
+ Your clone directory is probably similar to
192
+ ``C:\Users\%USER%\Documents\GitHub\pvlib-python``(Windows) or
193
+ ``/Users/%USER%/Documents/pvlib-python `` (Mac).
188
194
#. **Test ** your installation by running ``python -c 'import pvlib' ``.
189
195
You're good to go if it returns without an exception.
190
196
@@ -229,6 +235,11 @@ include:
229
235
230
236
The Anaconda distribution includes most of the above packages.
231
237
238
+ Alternatively, users may install all optional dependencies using
239
+
240
+ pip install pvlib[optional]
241
+
242
+
232
243
.. _nrelspa :
233
244
234
245
NREL SPA algorithm
0 commit comments