Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

error: invalid command 'build_sphinx'

how can I install the documentation for rdflib in mac osx 10.10.1 python 2.7.9? I have followed the instructions as outlined in 1 and I get error: invalid command 'build_sphinx' the documentation does not install. the library rdflib works well, I have tested. also, sphinx is working fine -also tested, which sphinx-quickstart.

like image 397
Victor Masinter Avatar asked Jan 31 '15 06:01

Victor Masinter


2 Answers

Make sure to have both sphinx and setuptools installed.

pip install sphinx
pip install setuptools
like image 63
Johann Burgess Avatar answered Nov 06 '22 16:11

Johann Burgess


You have to use the setuptools.setup instead of distutils.core.setup

if you replace

from distutils.core import setup

with

from setuptools import setup

And you have sphinx installed and setuptools installed...then it will work.

like image 23
KevinP Avatar answered Nov 06 '22 14:11

KevinP