【发布时间】:2022-01-19 12:58:03
【问题描述】:
我在我的 Centos 机器上安装了 sphinx,它显示它已经安装了最新的 sphinx 版本,即 4.3.0,但是在运行“sphinx-quickstart”或检查“sphinx-build --version”时,它显示的是 1.1 版本。 3.
显示版本不匹配。 请告诉我如何解决这个问题并删除版本不匹配。
日志-
[<...> docs]$ sphinx-build --version
Sphinx v1.1.3
[<...> docs]$ pip show sphinx
Name: Sphinx
Version: 4.3.1
Summary: Python documentation generator
Home-page: https://www.sphinx-doc.org/
Author: Georg Brandl
Author-email: georg@python.org
License: BSD
Location: </.../>.local/lib/python3.6/site-packages
Requires: alabaster, babel, docutils, imagesize, Jinja2, packaging, Pygments, requests, setuptools, snowballstemmer, sphinxcontrib-applehelp, sphinxcontrib-devhelp, sphinxcontrib-htmlhelp, sphinxcontrib-jsmath, sphinxcontrib-qthelp, sphinxcontrib-serializinghtml
[<...> docs]$ sphinx-quickstart
Welcome to the Sphinx 1.1.3 quickstart utility.
我有另一台我之前安装 sphinx 的 Linux 机器,它显示了正确的 sphinx 版本和构建版本。
日志-
[<...> docs]$ pip show sphinx
Name: Sphinx
Version: 4.2.0
Summary: Python documentation generator
Home-page: https://www.sphinx-doc.org/
Author: Georg Brandl
Author-email: georg@python.org
License: BSD
Location: <...>/.local/lib/python3.6/site-packages
Requires: sphinxcontrib-jsmath, sphinxcontrib-htmlhelp, requests, babel, packaging, sphinxcontrib-serializinghtml, sphinxcontrib-qthelp, Jinja2, Pygments, snowballstemmer, alabaster, docutils, setuptools, sphinxcontrib-applehelp, imagesize, sphinxcontrib-devhelp
Required-by: sphinxcontrib-confluencebuilder, rinohtype, recommonmark
[<...> docs]$ sphinx-build --version
sphinx-build 4.2.0
【问题讨论】:
标签: python-sphinx