2

i install Pysyft using this :


conda create -n pysyft python=3
conda activate pysyft 
activate pysyft" instead "
pip install syft

and yet when i try to import the library

from syft.frameworks.torch.differential_privacy import pate

it's show me this error :

ModuleNotFoundError Traceback (most recent call last) in 1 import numpy as np ----> 2 from syft.frameworks.torch.differential_privacy import pate

ModuleNotFoundError: No module named 'syft'

Eduardo Yáñez Parareda
  • 9,126
  • 4
  • 37
  • 50
Mohammed zain
  • 21
  • 1
  • 3

1 Answers1

4

According to the repository import changed to:

from syft.frameworks.torch.dp import pate