ModuleNotFoundError: No module named 'syft.frameworks'

1.2k Views Asked by At

I am trying to work on this example of Federated Learning. https://towardsdatascience.com/federated-learning-3097547f8ca3 I have installed the PySyft package but I am getting this error.

ModuleNotFoundError                       Traceback (most recent call 
last)
~\AppData\Local\Temp/ipykernel_10416/238857884.py in <module>
     9 import numpy as np
     10 import syft as sy
---> 11 from syft.frameworks.torch.federated import utils
     12 from syft.workers.websocket_client import WebsocketClientWorker

   ModuleNotFoundError: No module named 'syft.frameworks'
1

There are 1 best solutions below

1
Sushovan Khatua On

use this library import syft.frameworks.torch.fl.utils as utils