我正在尝试关注 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
关于python - 模块未找到错误 : No module named 'tensorflow_docs' when creating TensorFlow docs,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55535518/