Installation Guide¶
Prerequisites¶
- Python 3.12 or higher
- Git
- pip or uv package manager
- Python 3.12 or higher (from python.org or Microsoft Store)
- Git for Windows (for development installation)
- Optional: uv package manager
Tip
Verify that the prerequisites are installed before setting up FatPy, by running following commands:
Standard Installation¶
The easiest way to install FatPy is from PyPI:
This installs the latest stable release with all dependencies.
Development Installation¶
For contributing or customizing FatPy:
- Clone the repository:
- Setup development environment:
# Create and activate virtual environment
uv venv
.venv\Scripts\activate # On Unix: source .venv/bin/activate
# Install dependencies
uv sync
# Install in development mode
uv pip install -e .
# Setup pre-commit hooks
pre-commit install
The uv package manager is significantly faster than pip and provides better dependency resolution.
# Create and activate virtual environment
python -m venv venv
venv\Scripts\activate # On Unix: source venv/bin/activate
# Install dependencies
pip install -r requirements.txt
pip install -r requirements-dev.txt
# Install in development mode
pip install -e .
# Setup pre-commit hooks
pre-commit install
The standard pip approach works on all systems with Python installed.
Verifying Installation¶
Run a simple test to verify the installation: