Installation
Quick Start
If you are using conda:
conda install -c conda-forge pvcaptest
If you are using pip:
pip install captest[optional]
See below, for additional pip installation options.
Recommended Installation
The recommended method to install pvcaptest is to create a conda environment for pvcaptest. Installing Anaconda or miniconda will install both python and conda. There is no need to install python separately i.e. it is NOT recommended to install python using the python installer from python.org or to rely on the python installation that comes with your operating system.
If you are new to Python and virtual environments, the conda documentation provides a succinct summary of what a virtual environment is and why you might want to use one.
Another helpful resource is the installation section of the pandas documentation.
Easiest Option:
Download and install the anaconda distribution. Follow the default installation settings.
On Windows go to the start menu and open the Anaconda prompt under the newly installed Anaconda program. On OSX or Linux open a terminal window.
Install pvcaptest by typing the command
conda install -c conda-forge pvcaptestand pressing enter. The-c conda-forgeoption tells conda to install pvcaptest from the conda forge channel.
This will install the pvcaptest package in the base environment created when Anaconda is installed. This should work and provide you with jupyter notebook and jupyter lab to run pvcaptest in. If you think you will use your Anaconda installation to create and maintain additional environments, the following process for creating a stand alone option is likely a better option.
Better long term option:
If you do not already have it installed, download and install the anaconda distribution or miniconda.
Go to the environment.yaml file, right click, and select “save page as” to download the
environment.ymlfile.On Windows go to the start menu and open the Anaconda prompt under the newly installed Anaconda program. On OSX or Linux open a terminal window. Note the path in the prompt for the next step. On Windows this should be something like
C:\Users\username\. If you don’t see the path, typecdand hit enter (Windows) orpwd(OSX or Linux) to display the path of the current directory.Move the
environment.ymlfile to the directory identified by the path from the previous step.In your Anaconda prompt or terminal type
conda env create -f environment.ymland hit enter. Wait while conda works to solve the environment and install the packages.Once the installation is complete conda will print out a command for activating the new environment. Run that command, which should be like
conda activate pvcaptestto activate the new environment.
The environment created will include jupyter lab and notebook for you to use pvcaptest in. You can start these using the commands jupyter lab or jupyter notebook.
See the conda documentation for more details on using conda to create and manage environments.
pip Install Options
If you prefer, you can pip install pvcaptest, but the recommended approach is to use the conda package.
Note: The conda package is named pvcaptest and the pip package is named captest. The project is moving to consistent use of the pvcaptest name, but the package name on pypi will remain as captest.
Pip installation provides a ways to install optional dependencies:
pip install captest[optional]
Will install the optional dependencies: holoviews, panel, pvlib, and openpyxl. For users who want full functionality, but do not want to run the tests or build the documentation this is the recommended method.
pip install captest[test]
Will install the dependencies needed to run the tests.
pip install captest[test, build]
Will install the dependencies needed to run the tests and build the package.
pip install captest[docs]
Will install the dependencies needed to build the documentation. Note that the examples require nbsphinx, which requires pandoc, which pip will not install automatically. You will need to install pandoc separately. Using conda to install pandoc is recommended per the nbshpinx documentation. Pip installing pandoc will install the python wrapper, but not pandoc itself, which is written in Haskell. Using conda to install should install both the python wrapper and pandoc itself.
pip install captest[all]
Will install all of the optional dependencies.