Installation

Note

It’s probably a safer choice to install deepbots in a virtual environment. You can do that using venv:

python3 -m venv deepbots-env

and then activate it:

source deepbots-env/bin/activate

before installing deepbots and other python prerequisites such as the backend neural network framework.

Prerequisites

  1. Install Webots

  2. Install Python version 3.X (please refer to Using Python to select the proper Python version for your system)

  3. Refer to the Using Python guide provided by Webots

  4. Webots provides a basic code editor, but if you want to use PyCharm as your IDE refer to using PyCharm IDE provided by Webots

You will probably also need a backend library to implement the neural networks, such as PyTorch or TensorFlow. Deepbots interfaces with RL agents using the gym logic, so it can work with any backend library you choose to implement the agent with and any agent that already works with gym, such as stable-baselines3 implementations.

Install deepbots

Deepbots can be installed through the package installer pip running the following command:

pip install deepbots

Note

If you encounter the extras_require issue please try pip install setuptools==65.5.0 before installing deepbots.