ashiakerwang
ashiakerwang

Reputation: 61

ModuleNotFoundError: No module named 'tensorflow_federated.python.research'

The following error occurred while running "https://github.com/tensorflow/federated/blob/master/tensorflow_federated/python/research/gans/experiments/emnist/run_experiments.py" (I am attempting to regenerate the results of the paper):

ModuleNotFoundError: No module named 'tensorflow_federated.python.research'
  1. Here is the full list of my anaconda environment information:conda environment information
  2. and I am using Pycharm in Ubuntu 16.04:IDE
  3. Last but not least, I have tried to execute the code in the terminal but the error continued to exist, so I'm afraid that the problem is not concerned with the Pycharm IDE.the problem is not concerned with IDE

It will be appreciated if you could give me some suggestions.

Upvotes: 1

Views: 1294

Answers (1)

Zachary Garrett
Zachary Garrett

Reputation: 2941

This research project follows the TensorFlow Federated practice of using the bazel build system. The python scripts cannot be run directly.

After installing bazel, try the following commandline:

$ bazel run \
tensorflow_federated/python/research/gans/experiments/emnist:run_experiments

Upvotes: 2

Related Questions