privacy
privacy copied to clipboard
ModuleNotFoundError: No module named 'tensorflow_privacy'
Trying to import tensorflow_privacy
I get the following error. My tensorflow version is 1.14.0 and I am trying to import the command on a jupyter notebook. I install the library using
!pip install tensorflow_privacy
and everything is successfully installed but when I run import I get an error message
from tensorflow_privacy.privacy.analysis import compute_dp_sgd_privacy
from tensorflow_privacy.privacy.optimizers.dp_optimizer import DPGradientDescentGaussianOptimizer
---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
<ipython-input-13-080e2fd713ec> in <module>
----> 1 from tensorflow_privacy.privacy.analysis import compute_dp_sgd_privacy
2 from tensorflow_privacy.privacy.optimizers.dp_optimizer import DPGradientDescentGaussianOptimizer
ModuleNotFoundError: No module named 'tensorflow_privacy'
How do I fix this?