InstallationΒΆ

Poke Engine can be installed with pip, but the engine must be compiled from source. This means you must have Rust / Cargo installed on your system to pip install

pip install poke-engine

Without additional arguments the engine is compiled for generation 4 when installing.

To compile the engine for a different generation, the --config-settings flag can be used. For example, to compile for generation 5:

pip install poke-engine \
--config-settings="build-args=--features poke-engine/gen5 --no-default-features"

If adding to a requirements.txt file, the following line can be used:

poke-engine --config-settings="build-args=--features poke-engine/gen5 --no-default-features"