Skip to content

Installing MultiNEAT

The installation of MultiNEAT is divided into two parts, the Python installation and the C++ library installation. The order we install these matters, we start with the Python installation.


Python Installation

Set Up

After activating our new env with:

1
conda activate ec-64

As well as having followed the previous steps (installing prerequisites and gazebo).

We need to go to the MultiNEAT subdirectory, which (assuming you're in the Revolve-EC folder) is done with:

1
cd thirdparty/MultiNEAT

Installing Requirements

Once in the right directory, the first step of the requirements installation process is as follows:

1
conda install --file requirements.txt -y

Boost Install

Finally, we need to run the boost installation of MultiNEAT with the following command:

1
MN_BUILD=boost pip3 install .

Checking The MultiNEAT Install

Leaving the MultiNEAT sub-directory, back to the main Revolve-EC folder:

1
cd ../..

Warning

Exiting the MultiNEAT subdirectory is essential for the next command to work.

We can check that the python installation was successful with the following command:

1
python -c "import multineat"

We expect this to return blank (not raise any errors).


C++ Installation

Still, with the ec-64 env active, we go back to the MultiNEAT subdirectory

1
cd thirdparty/MultiNEAT

We make a directory build and we enter it:

1
2
mkdir -p build
cd build

Finally, we run the necessary cmake and make processes (the sudo command will request the user password):

1
2
3
cmake ..
make -j4 ..
sudo make -j4 install
1
2
3
4
5
# Expected output
    [...]
    [100%] Built target MultiNEAT
    Install the project...
    [...]


Installing MultiNEAT is done