Installation
Virtual Environment Setup
Always use a virtual environment to isolate project dependencies. This prevents version conflicts between projects and keeps your system Python clean.
uv provides fast virtual environment creation and management.
Why Virtual Environments?
Virtual environments prevent dependency conflicts by isolating packages per project. Without them, installing different versions of libraries for different projects becomes impossible, and upgrading one package can break unrelated code.
Basic Installation
With your virtual environment activated, install PrimeFeat:
uv offers faster dependency resolution and installation.
Optional Dependencies
PrimeFeat offers optional features that require additional packages.
Interactive Notebooks
For interactive Marimo notebooks:
Includes: marimo - Modern reactive Python notebooks
JIT Compilation
For accelerated computation with Numba:
Includes: numba - JIT compiler for numerical Python code
Multiple Optional Groups
Install multiple optional dependencies:
Development Installation
For contributing to PrimeFeat or running tests:
1. Clone the Repository
2. Install in Editable Mode with Dev Dependencies
Editable Mode
The -e flag installs the package in editable mode. Changes to the source code take effect immediately without reinstalling.
Development Dependencies
The dev dependency group includes:
- Testing:
pytest,pytest-cov - Documentation:
mkdocs,mkdocs-material,mkdocs-jupyter,mkdocstrings - Code Quality:
codespell - Version Management:
bump-my-version - Analysis:
pywavelets(for wavelet analysis features)
3. Verify Installation
Troubleshooting
Import Errors
If you encounter import errors after installation, ensure your virtual environment is activated:
Dependency Conflicts
uv handles this better than pip, but if you encounter issues: