Installation

PySlyde can be installed from PyPI or from source. This guide covers all installation methods and requirements.

Requirements

PySlyde requires Python 3.8 or higher and the following dependencies:

Installation from PyPI

The easiest way to install PySlyde is using pip:

pip install pyslyde

This will install PySlyde and all its dependencies automatically.

Installation from Source

To install from source, clone the repository and install in development mode:

git clone https://github.com/gregoryverghese/PySlide.git
cd PySlide
pip install -e .

Development Installation

For development work, install with development dependencies:

git clone https://github.com/gregoryverghese/PySlide.git
cd PySlide
pip install -e ".[dev]"

This includes additional tools for development:

System Dependencies

Some dependencies may require system-level libraries:

Ubuntu/Debian:

sudo apt-get update
sudo apt-get install libopenslide-dev libgl1-mesa-glx libglib2.0-0

macOS:

brew install openslide

Windows:

For Windows, most dependencies are available as pre-compiled wheels. If you encounter issues with OpenSlide, you may need to install it manually from the OpenSlide website.

Verifying Installation

To verify that PySlyde is installed correctly, run:

import pyslyde
print(pyslyde.__version__)

You should see the version number printed without any errors.

Troubleshooting

Common Installation Issues

  1. OpenSlide not found: Make sure you have the system-level OpenSlide library installed.

  2. CUDA issues: If you’re using GPU acceleration, ensure you have the correct CUDA version installed for your PyTorch/TensorFlow version.

  3. Memory issues: PySlyde works with large images, so ensure you have sufficient RAM (8GB+ recommended).

  4. Permission errors: On some systems, you may need to use pip install –user or install with sudo.

Getting Help

If you encounter installation issues:

  1. Check the GitHub issues for similar problems

  2. Create a new issue with your system details and error messages

  3. Contact the maintainer at gregory.verghese@gmail.com