Installation¶
This guide will help you install CarrierCapture.py on your system.
System Requirements¶
- Python 3.9 or later (Python 3.11-3.12 recommended)
- pip package manager
- Git (for development installation)
Platform Support¶
CarrierCapture.py works on:
- Linux (tested on Ubuntu 20.04+)
- macOS (tested on macOS 12+)
- Windows (via WSL or native Python)
Quick Installation (PyPI)¶
Coming Soon
CarrierCapture.py will be available on PyPI. For now, install from source.
Installation from Source¶
1. Clone the Repository¶
2. Create Virtual Environment (Recommended)¶
Using venv:
Using conda:
3. Install Package¶
For users:
For developers:
Optional Dependencies¶
Interactive Visualization¶
For the Dash dashboard and advanced plotting:
This includes:
- Plotly
- Dash
- Additional visualization tools
doped Integration¶
For defect calculation workflows with doped:
This includes:
- doped package
- monty for serialization
- pymatgen (already included in base install)
Documentation Building¶
For building documentation locally:
Jupyter Notebooks¶
For running tutorial notebooks:
All Optional Dependencies¶
Install everything:
Verify Installation¶
After installation, verify that CarrierCapture works:
Check CLI¶
You should see the help message with available commands.
Check Python API¶
Run Tests¶
Troubleshooting¶
Import Errors¶
If you get import errors, ensure your virtual environment is activated:
which python # Should point to your venv
pip list | grep carriercapture # Should show installed version
SciPy/NumPy Installation Issues¶
On some systems, you may need to install system dependencies first:
Ubuntu/Debian:
macOS:
Permission Denied¶
If you get permission errors, use pip install --user or create a virtual environment.
Windows-Specific Issues¶
On Windows, we recommend using Windows Subsystem for Linux (WSL) for the best experience. Alternatively, ensure you have:
- Visual C++ Build Tools installed
- Latest version of pip:
python -m pip install --upgrade pip
Updating CarrierCapture¶
From Source¶
From PyPI (Future)¶
Uninstallation¶
To remove CarrierCapture:
Development Installation¶
For contributing to CarrierCapture, install in editable mode with all development tools:
git clone https://github.com/WMD-group/CarrierCapture.py.git
cd CarrierCapture.py
pip install -e ".[dev]"
pre-commit install # Optional: set up git hooks
This installs:
- pytest for testing
- black, ruff for code formatting
- mypy for type checking
- All other development dependencies
Next Steps¶
Now that you have CarrierCapture installed, proceed to:
- Quick Start - Run your first calculation in 5 minutes
- Basic Concepts - Understand key concepts
- User Guide - Learn how to use CarrierCapture
Getting Help¶
If you encounter issues during installation:
- Check the GitHub Issues
- Search for your error message
- Open a new issue with:
- Your operating system
- Python version (
python --version) - Error message
- Steps to reproduce