Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ModuleNotFoundError: No module named 'tensorflow_docs' when creating TensorFlow docs

I'm trying to follow the contribution guide for documentation. The required steps are:

git clone https://github.com/tensorflow/tensorflow tensorflow
cd tensorflow/tensorflow/tools/docs 
pip install tensorflow==2.0.0-alpha0 
python generate2.py --output_dir=/tmp/out

But the last command gives me:

Traceback (most recent call last): File "generate2.py", line 36, in from tensorflow_docs.api_generator import doc_controls ModuleNotFoundError: No module named 'tensorflow_docs'

This is in line 36 of generate2.py:

from tensorflow_docs.api_generator import doc_controls

I haven't found a pip package containing tensorflow_docs. Any ideas?

like image 758
Romeo Kienzler Avatar asked Apr 05 '19 12:04

Romeo Kienzler


2 Answers

First install tensorflow_docs using this command:

pip install git+https://github.com/tensorflow/docs

like image 131
Chirag Avatar answered Sep 20 '22 17:09

Chirag


first, you need to install git.

install git by using this command conda install git in anaconda prompt. then run the following command

!pip install -q git+https://github.com/tensorflow/docs 

in jupyter notebook

OR

pip install -q git+https://github.com/tensorflow/docs

in anaconda prompt.

like image 27
Adeel Afzal Avatar answered Sep 18 '22 17:09

Adeel Afzal