Install poetry
sudo apt install python3-poetrypoetry install
poetry shellPoetry will install all your dependencies in a newly created virtual environment. To verify that everything works correctly, you can run the following command:
poetry run python3 -c "import flwr"If you don't see any errors, you're good to go!
Write the command below in your terminal to install the dependencies according to the configuration file requirements.txt.
pip install -r requirements.txtTo verify that everything works correctly, you can run the following command:
python3 -c "import flwr"If you don't see any errors, you're good to go!
Afterward, you are ready to start the Flower server as well as the clients. You can simply start the server in a terminal as follows:
./dev/server.shNow you are ready to start the clients. We have prepared a simple script called client.sh, which accepts a CLIENT_ID and can be executed as in:
# Shell 1
./dev/client.sh 1# Shell 2
./dev/client.sh 2