7

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.

mzjn
  • 48,958
  • 13
  • 128
  • 248

2 Answers2

4

Make sure to have both sphinx and setuptools installed.

pip install sphinx
pip install setuptools
Johann Burgess
  • 580
  • 6
  • 17
2

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.

endolith
  • 25,479
  • 34
  • 128
  • 192
KevinP
  • 303
  • 1
  • 9