Installation Guide¶
This guide will walk you through installing PyLithics on your system. PyLithics requires Python 3.7 or greater and works on macOS, Windows, and Linux.
System Requirements¶
- Python: Version 3.7 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.7+)
python3 --version
# If not installed, install Python
# macOS (using Homebrew - install from https://brew.sh/)
brew install python@3.7
# 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.7 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 Version: Use the
mainbranch for the most stable release - Latest Features: Use the
stagingbranch for the newest features (may be less stable)
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 command-line tools (pylithics and pylithics-run)
Step 5: Verify Installation¶
Test that PyLithics is correctly installed:
# Check if PyLithics is available
pylithics --help
# Or use the alternative command
pylithics-run --help
You should see the help text displaying available options and commands.
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.7+ using your system's package manager
# macOS (using Homebrew)
brew install python@3.9
# Ubuntu/Debian
sudo apt-get update
sudo apt-get install python3.9
# 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.