'ModuleNotFoundError: No module named 'syft.frameworks'

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'


Solution 1:[1]

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

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Sushovan Khatua