错误:无效命令'build_sphinx'

时间:2015-01-31 06:28:44

标签: python python-sphinx rdflib

如何在mac osx 10.10.1 python 2.7.9中安装rdflib的文档?我已按照1中所述的说明操作,我收到错误:无效的命令'build_sphinx'文档未安装。库rdflib运行良好,我已经测试过了。此外,狮身人面像工作正常 - 也进行了测试,其中sphinx-quickstart。

2 个答案:

答案 0 :(得分:2)

您必须使用setuptools.setup代替distutils.core.setup

如果你更换

from distutils.core import setup

from setuptools import setup

你安装了sphinx并安装了setuptools ......然后就可以了。

答案 1 :(得分:1)

确保同时安装了mkdir -p google/api curl https://raw.githubusercontent.com/googleapis/googleapis/master/google/api/annotations.proto > google/api/annotations.proto curl https://raw.githubusercontent.com/googleapis/googleapis/master/google/api/http.proto > google/api/http.proto python -m grpc_tools.protoc google/api/http.proto google/api/annotations.proto -I. --python_out=. --grpc_python_out=. your_proto.proto sphinx

setuptools