Installation#
NOTE: The installation instructions below assume that you have python installed on your machine and are using either conda or pixi as your package/environment manager.
Option 1: Install from PIP (recommended for analysts):#
Create a new environment:
conda create --name sup3r python=3.11Activate environment:
conda activate sup3rInstall sup3r:
pip install NREL-sup3rRun this if you want to train models on GPUs:
pip install tensorflow[and-cuda]4.1 For OSX use instead:
python -m pip install tensorflow-metal
Option 2: Clone repo (recommended for developers)#
Run
git clone git@github.com:NREL/sup3r.gitcd sup3r.Make sure the branch is correct (install from main!)
If you are using conda, create and activate a new environment:
conda create --name sup3r python=3.11andconda activate sup3r4.1 Install
sup3rand its dependencies by running:pip install .(orpip install -e .for editable install) 4.2 Run this if you want to train models on GPUs:pip install tensorflow[and-cuda]Alternatively, run
pixi installOptional: Set up the pre-commit hooks with
pip install pre-commitorpixi add pre-commitandpre-commit install