pvlib-python is a community supported tool that provides a set of documented functions for simulating the performance of photovoltaic energy systems. The toolbox was originally developed in MATLAB at Sandia National Laboratories and it implements many of the models and methods developed at the Labs. More information on Sandia Labs PV performance modeling programs can be found at https://pvpmc.sandia.gov/. We collaborate with the PVLIB-MATLAB project, but operate independently of it.
Full documentation can be found at readthedocs.
We need your help to make pvlib-python a great tool! Please see the Contributing to pvlib-python wiki for more on how you can contribute. The long-term success of pvlib-python requires substantial community support.
To obtain the most recent stable release, just use pip
or conda
:
pip install pvlib
conda install -c http://conda.anaconda.org/pvlib pvlib
If your system complains that you don't have access privileges or asks for a password then you're trying to install pvlib into your system's Python distribution. This is a very bad idea and you should instead follow the If you don't have Python instructions below.
There are many ways to install Python on your system, but the Anaconda Scientific Python distribution provides by far the easiest way for new users to get started. Anaconda includes all of the popular libraries that you'll need for pvlib, including Pandas, NumPy, and SciPy. "Anaconda installs cleanly into a single directory, does not require Administrator or root privileges, does not affect other Python installs on your system, or interfere with OSX Frameworks." -Anaconda Documentation.
-
Install the full Anaconda Scientific Python distribution available here.
-
Install pvlib:
conda install -c http://conda.anaconda.org/pvlib pvlib
If you have trouble, see the Anaconda FAQ, Google your error messages, or make a new issue on our Issues page.
We strongly recommend working in a virtual environment if you're going to use the development versions of the code. There are many ways to use virtual environments in Python, but Anaconda again provides the easiest solution:
- Create a new conda environment for pvlib and pre-install a handful of packages into the environment:
conda create --name pvlibdev python pandas scipy ephem
- Activate the new environment:
source activate pvlibdev
- Install the latest development version:
- If you don't plan to modify the source-code:
pip install git+https://github.com/pvlib/pvlib-python.git
- If you do plan to modify the source code: Use the GitHub GUI application or git command-line tool to clone this repository to your computer, then navigate your command-line to the top-level pvlib-python directory, then
pip install -e .
- You may also consider installing additional packages into your development environment:
conda install ipython-notebook nose seaborn
The conda documentation has more information on how to use virtual environments.