Installation Guide

This guide will help you install the edsger package on your system.

Requirements

Before you begin, ensure you have the following prerequisites:

  • Python 3.10 or higher

  • pip (Python package installer) or uv (recommended)

  • (Optional) git for installing from source

Optional Dependencies

Edsger supports multiple DataFrame backends. Install the ones you need:

# For pandas Arrow backend support (recommended for large graphs)
pip install pyarrow

# For Polars DataFrame support
pip install polars

Method 1: Using Python venv + pip

Create a virtual environment and install with pip:

# Create a virtual environment
python -m venv edsger-env

# Activate the virtual environment
source edsger-env/bin/activate  # On Windows: edsger-env\Scripts\activate

# Install edsger
pip install edsger

Installing from Source

If you prefer to install from source or contribute to development:

1. Clone the Repository

git clone https://github.com/aetperf/Edsger.git
cd Edsger

2. Using Python venv + pip

# Create and activate virtual environment
python -m venv edsger-env
source edsger-env/bin/activate  # On Windows: edsger-env\Scripts\activate

# Install in editable mode
pip install -e .

4. Verify the Installation

Check that the installation was successful by importing the package in a Python shell:

python
>>> import edsger
>>> edsger.__version__

You should see the version number of the edsger package.

Development Installation

For contributors who need development dependencies:

Using Python venv + pip

# Create and activate virtual environment
python -m venv edsger-env
source edsger-env/bin/activate  # On Windows: edsger-env\Scripts\activate

# Install development dependencies
pip install -r requirements-dev.txt
pip install -e .

Using uv (Recommended)

# Create and activate virtual environment
uv venv edsger-env
source edsger-env/bin/activate  # On Windows: edsger-env\Scripts\activate

# Install development dependencies
uv pip install -r requirements-dev.txt
uv pip install -e .

Troubleshooting

Module Not Found Error

If you encounter a ModuleNotFoundError, make sure that:

  1. The edsger package is installed correctly

  2. You’re using the correct Python environment

  3. The PYTHONPATH is set appropriately (if needed)

Compilation Issues

If you experience compilation issues, ensure you have:

  • A working C compiler

  • NumPy installed

  • Cython >= 3.0 installed

Uninstallation

To uninstall the edsger package:

pip uninstall edsger

Getting Help

For further assistance: