Installation Guide¶
This guide will walk you through installing PyLithics on your system. PyLithics requires Python 3.8 or greater and works on macOS, Windows, and Linux.
System Requirements¶
- Python: Version 3.8 or higher
- Operating System:
- macOS 10.14 or later
- Windows 10 or later
- Linux (Ubuntu 18.04+, CentOS 7+, or equivalent)
- Memory: Minimum 4GB RAM (8GB recommended for large datasets)
- Storage: 500MB for installation plus space for your data
Step 1: Verify Prerequisites¶
Before installing PyLithics, ensure you have Python and Git installed on your system.
Check Python Installation¶
# Check Python version (should be 3.8+)
python3 --version
# If not installed, install Python
# macOS (using Homebrew - install from https://brew.sh/)
brew install python@3.11
# Ubuntu/Debian
sudo apt-get update
sudo apt-get install python3 python3-pip python3-venv
# CentOS/RHEL
sudo yum install python3 python3-pip
Check Git Installation¶
Python Version
PyLithics requires Python 3.8 or higher. If you have an older version, please upgrade before proceeding.
Step 2: Set Up a Virtual Environment¶
We strongly recommend using a virtual environment to avoid conflicts with other Python packages.
Virtual Environment Active
When your virtual environment is active, you'll see (palaeo) at the beginning of your command prompt.
Step 3: Clone the Repository¶
Clone the PyLithics repository from GitHub:
Choosing a Branch¶
- Stable Release: Use the
mainbranch for the most recent tagged release (currently v2.0.0). This is what we recommend for almost everyone. - In-Progress Work: Use the
developbranch if you want to preview changes that are queued for the next release. May be less stable.
# For the stable release (recommended)
git checkout main
# For in-progress work
git checkout develop
To pin to a specific released version for reproducibility, check out the tag instead:
Step 4: Install PyLithics¶
Install PyLithics and all its dependencies:
This command will:
- Install PyLithics as a package
- Install all required dependencies listed in requirements.txt
- Set up the pylithics command-line tool
Step 5: Verify Installation¶
Test that PyLithics is correctly installed by running it with no arguments:
You should see the welcome splash — a chunky PyLithics logo above a Get-started panel listing the five common command patterns:
- Quick start — analyze the bundled sample dataset
- Run sample data and visualize — analyze and open the results dashboard
- Open an existing run in the browser — re-open a previous analysis in the dashboard
- Help & docs —
pylithics --helpandpylithics --docs - GitHub — the project repository URL
Copy whichever command you want to run next.
Optional: run the bundled sample dataset¶
To prove the full pipeline works end-to-end immediately after installing, run the second splash command:
This processes the bundled sample images and opens the interactive dashboard in your browser. If this completes without errors and the dashboard loads, your install is healthy.
Full CLI help¶
Updating PyLithics¶
To update to the latest version:
# Navigate to PyLithics directory
cd Palaeoanalytics
# Pull latest changes
git pull origin main
# Reinstall
pip install . --upgrade
Building Documentation Locally¶
Documentation tools are installed automatically with PyLithics. To build and view the documentation locally:
Documentation Tools Included
MkDocs and related documentation dependencies are automatically installed with PyLithics, so no additional installation is needed.
Troubleshooting Installation¶
Python Version Issues¶
If you encounter Python version errors:
# Check your Python version
python --version
# If needed, install Python 3.8+ using your system's package manager
# macOS (using Homebrew)
brew install python@3.11
# Ubuntu/Debian
sudo apt-get update
sudo apt-get install python3.11
# Windows - download from python.org
macOS-Specific Issues¶
For macOS users with OS versions below 10.14:
- Consider upgrading your OS to 10.14 or later
- If upgrade isn't possible, you may encounter build issues with some dependencies
Windows PowerShell Execution Policy¶
If you get execution policy errors on Windows:
# Run PowerShell as Administrator
Set-ExecutionPolicy RemoteSigned
# Or for current session only
Set-ExecutionPolicy Unrestricted -Scope Process
Missing Dependencies¶
If you encounter missing dependency errors:
OpenCV Installation Issues¶
If OpenCV fails to install:
# Try installing OpenCV separately first
pip install opencv-python-headless>=4.8.0
# Then install PyLithics
pip install .
Uninstalling¶
To remove PyLithics:
# Uninstall PyLithics
pip uninstall pylithics
# Deactivate and remove virtual environment
deactivate
rm -rf palaeo/ # On Windows: rmdir /s palaeo
Next Steps¶
Now that PyLithics is installed, you're ready to:
For any installation issues not covered here, please check our troubleshooting guide or open an issue on GitHub.