Installation¶
Requirements¶
lonpy requires Python 3.10 or higher.
Install from PyPI¶
The simplest way to install lonpy is via pip:
Install from Source¶
For the latest development version:
Dependencies¶
lonpy automatically installs the following dependencies:
| Package | Version | Purpose |
|---|---|---|
| numpy | >= 1.24.0 | Numerical computations |
| scipy | >= 1.10.0 | Optimization algorithms |
| pandas | >= 2.0.0 | Data manipulation |
| igraph | >= 0.11.0 | Graph operations |
| matplotlib | >= 3.7.0 | 2D plotting |
| plotly | >= 5.15.0 | Interactive 3D plots |
| kaleido | >= 0.2.1 | Static image export |
| imageio | >= 2.31.0 | GIF creation |
Development Installation¶
To install lonpy with development dependencies for contributing:
This includes:
pytest- Testing frameworkpytest-cov- Coverage reportingruff- Linting and formattingmypy- Type checkingpre-commit- Git hooks
Verifying Installation¶
After installation, verify everything works:
You should see the version number (e.g., 0.1.0).
Troubleshooting¶
igraph Installation Issues¶
On some systems, you may need to install igraph system dependencies first:
Plotly/Kaleido Issues¶
If you encounter issues with static image export:
On some systems, you may need: