Installation#
NOTE: The installation instruction below assume that you have python installed on your machine and are using conda as your package/environment manager.
Option 1: Install from PIP (recommended for analysts):#
Create a new environment:
conda create --name sup3r python=3.11
Activate environment:
conda activate sup3r
Install sup3r:
pip install NREL-sup3r
Run 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)#
from home dir,
git clone git@github.com:NREL/sup3r.git
- Create
sup3r
environment and install package Create a conda env:
conda create -n sup3r
Run the command:
conda activate sup3r
cd
into the repo cloned in 1.Prior to running
pip
below, make sure the branch is correct (install from main!)Install
sup3r
and its dependencies by running:pip install .
(orpip install -e .
if running a dev branch or working on the source code)Run this if you want to train models on GPUs:
pip install tensorflow[and-cuda]
Optional: Set up the pre-commit hooks with
pip install pre-commit
andpre-commit install
- Create