Installation
This guide will help you install SwissKnife and configure all required dependencies for optimal functionality.Prerequisites
Python 3.13 or higher is required. SwissKnife uses modern Python features and requires Python 3.13+.
Install SwissKnife
Core Dependencies
SwissKnife automatically installs the following Python packages:- patool (≥4.0.1) - Universal archive extraction and creation
- pdflatex (≥0.1.3) - PDF generation support
- pillow (≥11.3.0) - Image processing and conversion
- pydub (≥0.25.1) - Audio manipulation
- pypandoc-binary (≥1.15) - Document conversion with embedded Pandoc
- imageio-ffmpeg (≥0.6.0) - Video and audio conversion backend
- google-genai (≥1.39.1) - AI-powered summarization
- pypdf (≥6.1.1) - PDF merge and split operations
- py7zr (≥1.0.0) - 7-Zip archive handling
Optional Dependencies
Certain features require additional system-level dependencies.LaTeX (For PDF Conversion)
PDF conversion from documents requires a LaTeX distribution. Choose the installation method for your operating system:- Linux/Ubuntu
- macOS
- Windows
Archive Tools (For 7Z and RAR)
Some archive formats require external command-line tools:7-Zip (.7z format)
7-Zip (.7z format)
- Linux/Ubuntu
- macOS
- Windows
RAR (.rar format)
RAR (.rar format)
- Linux/Ubuntu
- macOS
- Windows
AI Summarization Setup
Get Google API Key
- Visit AI Studio
- Sign in with your Google account
- Create a new project
- Generate an API key
Troubleshooting
Python version errors
Python version errors
SwissKnife requires Python 3.13+. If you see version-related errors:
LaTeX not found errors
LaTeX not found errors
If you see “xelatex not found” or similar errors:
- Verify LaTeX is installed:
xelatex --version - Ensure LaTeX binaries are in your PATH
- Restart your terminal after installation
Archive extraction failures
Archive extraction failures
For
.7z or .rar format errors:- Verify the tools are installed:
7z --helporunrar --help - Ensure the tools are in your system PATH
- On Windows, check PATH environment variable includes the tool directories
Module import errors
Module import errors
If you see “Module not found” errors:
Next Steps
Quick Start Guide
Learn how to use SwissKnife with practical examples and common workflows