NEATdocs

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:

PlatformPythonWheel tag
Linux x86_64 (glibc)3.10–3.13manylinux_2_28_x86_64
Linux x86_64 (musl, e.g. Alpine)3.10–3.13musllinux_1_2_x86_64
macOS Apple Silicon3.10–3.13macosx_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" tensorflow

Swap 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" tensorflow

Drop @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

ExtraAdds
kerasKeras 3 integration (neat_optim.NEAT, NEATDiagnosticsCallback)
torchThe direct PyTorch adapter (neat_optim.TorchNEAT)
devLinting, 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

RequirementVersion
Python3.10 to 3.13
Keraskeras>=3.13,<4
Backend runtimeTensorFlow, JAX, or PyTorch
PlatformLinux or macOS
Build toolsA C++ compiler, for source installs only

Next steps

On this page