Skip to content

Installation Guide

System Requirements

Python Environment

  • Python 3.x
  • pip (Python package installer)

System Dependencies

=== "Linux (Ubuntu/Debian)"

# Install LibreOffice
sudo apt-get update
sudo apt-get install libreoffice

# Install Poppler
sudo apt-get install poppler-utils

# Install Playwright dependencies
sudo apt-get install libnss3 libnspr4 libatk1.0-0 libatk-bridge2.0-0 libcups2 libdrm2 libxkbcommon0 libxcomposite1 libxdamage1 libxfixes3 libxrandr2 libgbm1 libasound2

=== "macOS"

# Using Homebrew
brew install libreoffice
brew install poppler

=== "Windows" 1. Download and install LibreOffice 2. Download and install Poppler for Windows 3. Add the installed binaries to your system PATH

PyVisionAI Installation

  1. Install using pip:

    pip install pyvisionai
    

  2. Install Playwright:

    playwright install
    

Verify Installation

Test your installation by running:

pyvisionai --version

Optional Dependencies

For enhanced functionality, you can install additional packages:

pip install pyvisionai[all]  # Install all optional dependencies

Troubleshooting

Common Issues

  1. LibreOffice Not Found

    # Ensure LibreOffice is in your PATH
    which libreoffice  # On Unix-like systems
    where libreoffice  # On Windows
    

  2. Poppler Issues

  3. Verify Poppler installation:
    pdfinfo --version
    
  4. Check if Poppler binaries are in PATH

  5. Playwright Setup

  6. If you encounter browser-related issues:
    playwright install --force
    

Getting Help

If you encounter any issues: 1. Check our GitHub Issues 2. Join our Community for support 3. Review the Resources section