Comparison
nlopt vs pyroots vs scipy
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
Library for nonlinear optimization, wrapping many algorithms for global and local, constrained or unconstrained, optimization
Maintained. Last release 5 months ago, commits in 2 of the last 26 weeks. Weaker on commit activity and release cadence.
$
pip install nloptPure python single variable function solvers
Likely abandoned. No release or commit for years (last release over 6 years ago).
$
pip install pyrootsFundamental algorithms for scientific computing in Python
Actively maintained. Last release 3 months ago, commits in 26 of the last 26 weeks. A safe choice.
$
pip install scipyIn short
- pyroots looks abandoned: avoid it for new projects.
- scipy is the most used: 427.8M downloads a month, 114× more than nlopt.
- scipy also has the best Pythie’s Index (86).
- nlopt is growing fastest: downloads +39% over the last month.
- Safe default for a new project: scipy.