Installation¶
Requirements¶
- Python 3.13 or higher
- Operating Systems: macOS, Linux, Windows (WSL recommended)
Install from PyPI¶
Install the latest stable release:
Install from Source¶
For the latest development version:
Development Installation¶
For contributing to bead, install with all development dependencies:
This installs:
- dev: testing and linting tools (pytest, ruff, pyright)
- api: model adapters (OpenAI, Anthropic, Google, HuggingFace)
- training: active learning dependencies (PyTorch, transformers)
Verify Installation¶
Check that bead is installed correctly:
Or use the CLI:
Optional Dependencies¶
Install specific dependency groups as needed:
# HuggingFace models for template filling and active learning
uv sync --extra api
# Active learning with PyTorch
uv sync --extra training
# All dependencies
uv sync --all-extras
TypeScript Development (jsPsych Plugins)¶
If you need to modify or rebuild the jsPsych plugins, install Node.js dependencies:
# Install pnpm (if not installed)
npm install -g pnpm
# Install TypeScript dependencies
cd bead/deployment/jspsych
pnpm install
# Build TypeScript to JavaScript
pnpm build
# Run type checking
pnpm typecheck
# Run linting (Biome)
pnpm check
The compiled JavaScript is output to bead/deployment/jspsych/dist/.
Troubleshooting¶
Python Version¶
Verify you have Python 3.13+:
If not, install from python.org or use pyenv:
Common Issues¶
Issue: ModuleNotFoundError: No module named 'bead'
Solution: Ensure you are using uv run to execute Python commands.
Issue: ImportError for optional dependencies
Solution: Install the required extra, e.g., uv sync --extra api
Next Steps¶
Continue to the Quick Start guide for a complete tutorial.