Installation¶
XTK can be installed using pip or from source.
Prerequisites¶
- Python 3.8 or higher
- pip (Python package installer)
Install from PyPI¶
The easiest way to install XTK is from PyPI:
Note: The package is published as xpression-tk but imported as xtk.
Install from Source¶
To get the latest development version:
The -e flag installs the package in editable mode, which is useful for development.
Verify Installation¶
Verify that XTK is installed correctly:
Or launch the interactive REPL:
You should see the XTK prompt:
Optional Dependencies¶
Development Tools¶
If you plan to contribute to XTK or run tests:
This installs:
- pytest - Testing framework
- pytest-cov - Code coverage
- black - Code formatter
- flake8 - Linter
- mypy - Type checker
- isort - Import sorter
Documentation Tools¶
To build the documentation locally:
System Requirements¶
XTK is a pure Python package and works on:
- Linux
- macOS
- Windows
Minimum system requirements:
- 100MB disk space
- 256MB RAM (more for complex computations)
Troubleshooting¶
Import Error¶
If you get ModuleNotFoundError: No module named 'xtk':
- Ensure you installed
xpression-tk(notxtk) - Check your Python environment:
pip list | grep xpression - Verify Python version:
python --version(must be 3.8+)
Permission Errors¶
On Unix systems, you may need to use pip3 instead of pip, or install with --user:
Or use a virtual environment (recommended):
python3 -m venv xtk-env
source xtk-env/bin/activate # On Windows: xtk-env\Scripts\activate
pip install xpression-tk
Next Steps¶
Now that XTK is installed, check out the Quick Start Guide to begin using it!