我正在尝试关注 contribution guide用于文档。所需的步骤是:
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
但是最后一条命令给了我:
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'
这是在 generate2.py 的第 36 行:
from tensorflow_docs.api_generator import doc_controls
我还没有找到包含 tensorflow_docs 的 pip 包。有什么想法吗?
请您参考如下方法:
首先使用此命令安装 tensorflow_docs:
pip install git+https://github.com/tensorflow/docs
