Complete installation instructions for PyPage with all features and dependencies.
- Python 3.8+ (Python 3.11+ recommended)
- pip package manager
- Modern web browser for development server
For most users, the basic installation includes all core features:
pip install pypageThis includes:
- ✅ Core components (Page, Container, Card, etc.)
- ✅ Bootstrap 5 integration
- ✅ Dark mode support
- ✅ Basic animations
- ✅ Responsive design
- ✅ Flask integration
- ✅ CLI tools
For PDF generation capabilities:
pip install pypage[pdf]Additional features:
- ✅ PDF export via WeasyPrint
- ✅ ReportLab integration
- ✅ Print-optimized layouts
For data visualization components:
pip install pypage[charts]Additional features:
- ✅ Interactive charts (Chart.js)
- ✅ Matplotlib integration
- ✅ Plotly support
- ✅ KPI cards and dashboards
For contributors and advanced users:
pip install pypage[dev]Additional features:
- ✅ Testing frameworks (pytest, coverage)
- ✅ Code formatting (black, isort)
- ✅ Linting (flake8, mypy)
- ✅ Pre-commit hooks
Get everything PyPage has to offer:
pip install pypage[full]Includes all features:
- ✅ PDF export capabilities
- ✅ Chart and visualization tools
- ✅ Development tools
- ✅ Performance optimizations
- ✅ WebAssembly integration
poetry add pypage
# or with extras
poetry add pypage[full]conda install -c conda-forge pypagepipx install pypagegit clone https://github.com/pypage/pypage.git
cd pypage
pip install -e .[dev]Test your installation:
import pypage
print(f"PyPage version: {pypage.__version__}")
# Quick test
from pypage import Page, Heading
page = Page("Test", "Installation successful!")
page.add_content(Heading("PyPage is working! 🎉", 1))
print("✅ Installation verified!")Or use the CLI:
pypage --version
pypage create test-project --template basic# WebAssembly support (experimental)
pip install wasmtime
# Faster JSON processing
pip install orjson
# Image optimization
pip install Pillow# Advanced CSS processing
pip install rcssmin
# JavaScript minification
pip install jsmin
# Syntax highlighting
pip install pygmentsModuleNotFoundError: No module named 'pypage'
# Ensure you're in the correct virtual environment
which python
pip list | grep pypageImport errors with extras
# Reinstall with specific extras
pip uninstall pypage
pip install pypage[full]Permission errors on macOS/Linux
# Use user installation
pip install --user pypageWeasyPrint installation issues
# On Ubuntu/Debian
sudo apt-get install python3-dev python3-pip python3-cffi python3-brotli libpango-1.0-0 libharfbuzz0b libpangoft2-1.0-0
# On macOS
brew install pangoRecommended for all installations:
# Create virtual environment
python -m venv pypage-env
# Activate (Windows)
pypage-env\Scripts\activate
# Activate (macOS/Linux)
source pypage-env/bin/activate
# Install PyPage
pip install pypage[full]For containerized environments:
FROM python:3.11-slim
# Install system dependencies for WeasyPrint
RUN apt-get update && apt-get install -y \
libpango-1.0-0 \
libharfbuzz0b \
libpangoft2-1.0-0 \
&& rm -rf /var/lib/apt/lists/*
# Install PyPage
RUN pip install pypage[full]
# Your application code
COPY . /app
WORKDIR /app| PyPage Version | Python Version | Features |
|---|---|---|
| 3.0.x | 3.8+ | All features, latest components |
| 2.x.x | 3.7+ | Legacy components, basic features |
| 1.x.x | 3.6+ | Original HTML generator |
If you encounter installation issues:
- Check the FAQ for common solutions
- Search existing issues on GitHub
- Create a new issue with:
- Your operating system
- Python version (
python --version) - Full error message
- Installation command used
After successful installation:
- 🚀 Quick Start - Build your first page
- 📚 Component Reference - Explore all components
- 💡 Examples - See real-world projects
- 🎮 Interactive Playground - Test components live
Welcome to PyPage! 🎉