New to flwr and having problem in running my first program.

Hello,

I am new to flwr and trying to follow the website instructions. But I am getting the following error. Can someone help me?

  1. :white_check_mark: Python 3.11.9
  2. :white_check_mark: Ray 2.55.1 installed
  3. :white_check_mark: Flower 1.31.0 installed

:confetti_ball: Successfully started run 15310168457235330674
INFO : Starting logstream for run_id 15310168457235330674
INFO : Starting Flower Simulation
ERROR : Exit Code: 701
ray backend selected for simulation, but ray is not installed.

Extra dependencies required for simulation are missing.

To use simulation with the Ray backend, install flwr with the simulation extra:

`pip install "flwr[simulation]"`.

Hi @shubhamets,
This likely means Ray isn’t installed in the same environment used by flwr run. Please install Flower with the simulation extra in that environment:

python -m pip install -U "flwr[simulation]"

Also make sure your app’s pyproject.toml uses:

dependencies = [
    "flwr[simulation]>=1.31.0",
]

Then rerun again.