如何安装Sphinx

时间:2015-05-21 07:48:37

标签: python python-sphinx

我通过pip安装了Sphinx。

但是,我无法启动Sphinx。

user:~ $ sphinx-quickstart
Traceback (most recent call last):
  File "user/anaconda/bin/sphinx-quickstart", line 9, in <module>
    load_entry_point('Sphinx==1.2.3', 'console_scripts', 'sphinx-quickstart')()
  File "build/bdist.macosx-10.5-x86_64/egg/pkg_resources/__init__.py", line 552, in load_entry_point
  File "build/bdist.macosx-10.5-x86_64/egg/pkg_resources/__init__.py", line 2671, in load_entry_point
ImportError: Entry point ('console_scripts', 'sphinx-quickstart') not found

我该如何解决?

1 个答案:

答案 0 :(得分:3)

如果你正在使用anaconda,请先尝试他们的包

  • pip uninstall sphinx
  • conda install sphinx