ModuleNotFoundError:创建tensorflow文档时没有名为“tensorflow_docs”的模块

2024-09-29 19:30:45 发布

您现在位置:Python中文网/ 问答频道 /正文

我试图按照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行:

^{pr2}$

我没有找到包含tensorflow_docs的pip包。有什么想法吗?在


Tags: pip文档pyhttpsgitgithubcomdocs

热门问题