FlowerでFedproxを動かす際の問題解決
FlowerでFedproxを動かす際の問題解決
pip install -eが動かない
flowerをcloneして該当ディレクトリで実行したら動作した
rayがない
code: log
ERROR : Backend ray, is not supported. Use any of [] or add support for a new backend.
ERROR : Unable to import module ray.
To install the necessary dependencies, install flwr with the simulation extra:
ERROR : An exception occurred !! 'ray'
ERROR : Traceback (most recent call last):
pip install -U ray
上手く入ったみたい?
rayのエラー
長いので省略
ray単体は動く
code: ray-check.py
import ray
ray.init()
@ray.remote
def f(x): return x+1
print(ray.get(f.remote(10)))
多分,仮想環境作成時にバージョン指定し忘れたせい