Installation
Install a prebuilt wheel from the 1.0.0 release, or build from GitHub source.
Not on PyPI yet
pip install neat-optim does not work yet. Install a prebuilt wheel from the 1.0.0 release, or build from the GitHub source with the commands below.
Option 1: prebuilt wheel (no compiler)
The v1.0.0 release ships wheels with the native extension already compiled:
| Platform | Python | Wheel tag |
|---|---|---|
| Linux x86_64 (glibc) | 3.10–3.13 | manylinux_2_28_x86_64 |
| Linux x86_64 (musl, e.g. Alpine) | 3.10–3.13 | musllinux_1_2_x86_64 |
| macOS Apple Silicon | 3.10–3.13 | macosx_11_0_arm64 |
Pick the wheel for your platform and Python version from the release page, then install it by URL. For example, Python 3.12 on Apple Silicon with the Keras extra:
pip install "neat-optim[keras] @ https://github.com/ItCodinTime/NEAT/releases/download/v1.0.0/neat_optim-1.0.0-cp312-cp312-macosx_11_0_arm64.whl" tensorflowSwap tensorflow for jax[cpu] or torch to use another backend.
Option 2: from GitHub source
pip install "neat-optim[keras] @ git+https://github.com/ItCodinTime/NEAT.git@v1.0.0" tensorflowDrop @v1.0.0 to install the latest main instead of the release.
C++ compiler required for source installs
Source installs build NEAT's native C++ extension. Run xcode-select --install on macOS, or install build-essential on Debian/Ubuntu. pip fetches CMake for you. Prebuilt wheels skip this step.
Optional extras
| Extra | Adds |
|---|---|
keras | Keras 3 integration (neat_optim.NEAT, NEATDiagnosticsCallback) |
torch | The direct PyTorch adapter (neat_optim.TorchNEAT) |
dev | Linting, typing, test and docs tooling for contributors |
Check the install
python -c "import neat_optim; print(neat_optim.__version__)"This should print 1.0.0.
Requirements
| Requirement | Version |
|---|---|
| Python | 3.10 to 3.13 |
| Keras | keras>=3.13,<4 |
| Backend runtime | TensorFlow, JAX, or PyTorch |
| Platform | Linux or macOS |
| Build tools | A C++ compiler, for source installs only |