Installation¶
Requirements¶
- Python 3.9 or higher
- pip (Python package manager)
Quick Install¶
The simplest way to install Schopenhauer is via pip:
This installs the core package with all essential dependencies for document generation.
Installation Options¶
Core Installation¶
Basic installation with document generation capabilities:
Includes:
python-docx- Word document manipulationclick- CLI frameworkrich- Beautiful terminal outputpyyaml- YAML parsingpillow- Image handlinghttpx- HTTP clientjinja2- Template engine
With API Server¶
Install with FastAPI server support for cloud deployment:
Additional packages:
fastapi- Web frameworkuvicorn- ASGI serverpython-multipart- File upload handling
With Documentation Tools¶
Install with documentation generation tools:
Additional packages:
mkdocs- Documentation generatormkdocs-material- Material thememkdocstrings- API documentation
Development Installation¶
Install with all development dependencies:
Additional packages:
pytest- Testing frameworkpytest-cov- Coverage reportingblack- Code formatterruff- Lintermypy- Type checkingpre-commit- Git hooks
Full Installation¶
Install everything:
Verify Installation¶
After installation, verify that the will command is available:
Expected output:
Installing from Source¶
For the latest development version:
# Clone the repository
git clone https://github.com/schopenhauer/schopenhauer.git
cd schopenhauer
# Install in development mode
pip install -e ".[dev]"
Virtual Environment (Recommended)¶
We recommend using a virtual environment to avoid conflicts with other packages:
Upgrading¶
To upgrade to the latest version:
Uninstalling¶
To remove Schopenhauer:
Troubleshooting¶
Command not found¶
If will is not found after installation, ensure your Python scripts directory is in your PATH:
Add the bin (Linux/macOS) or Scripts (Windows) subdirectory to your PATH.
Import errors¶
If you encounter import errors, try reinstalling with all dependencies:
Permission errors¶
On Linux/macOS, if you get permission errors:
Or use a virtual environment (recommended).
Next Steps¶
- Quick Start Guide - Create your first document
- CLI Commands - Learn all available commands
- YAML Format - Master the specification format