Installation¶
Requirements¶
OpenPyTEA requires Python 3.10 or later.
Install from PyPI¶
The recommended way to install OpenPyTEA is via pip:
pip install OpenPyTEA
Clone from source¶
To work with the notebooks or contribute to development, clone the repository. We recommend uv for this workflow — it locks the full environment so the virtual environment can be exactly reproduced:
git clone https://github.com/PBTamarona/OpenPyTEA.git
cd OpenPyTEA
uv sync
uv sync reads the lockfile and creates a .venv with all dependencies
pinned, making it easy to share and replicate the environment across machines.
If you prefer plain pip instead:
git clone https://github.com/PBTamarona/OpenPyTEA.git
cd OpenPyTEA
pip install -e .
Dependencies¶
OpenPyTEA automatically installs all required dependencies:
Package |
Purpose |
|---|---|
|
Numerical computations and array operations |
|
Tabular data handling (cost databases, results) |
|
Plotting and visualization |
|
Publication-quality figure styling |
|
Optimization (IRR solver) and statistical distributions |
|
Statistical visualization (Monte Carlo plots) |
|
Progress bars for Monte Carlo simulations |
|
Template rendering for result reports |
Optional extras¶
# Jupyter / IPython kernel support
pip install "OpenPyTEA[ipython]"
# Development / testing
pip install "OpenPyTEA[test]"
Verify installation¶
import openpytea
print(openpytea.__version__)
Web GUI (Work in progress)¶
The interactive web GUI requires additional setup. See Web GUI for full instructions. Please note, the GUI is still in active development and not all features are available yet.
# Backend (FastAPI)
cd backend
pip install -r requirements.txt
uvicorn app.main:app --reload
# Frontend (React + Vite) — in a separate terminal
cd frontend
npm install
npm run dev