How to upgrade sphinx?

From the output of sphinx-build --version I see I have:

Sphinx (sphinx-build) 1.6.3

How do I upgrade to the latest version, which I believe to currently be 1.8?

I have tried apt install python3-sphinx and pip install, but that alone does not seem to change the version I get when running sphinx-build.

I'm running Ubuntu 16.04 but I hope this helps people with newer versions as well! Thanks in advance!

2 Answers

You can install Sphinx directly from a clone of the Git repository or simply installing directly via pip pointing git repository url.

git clone
cd sphinx
pip install .

or

pip install git+

If you use python3.

pip3 install git+
4

Remove old installation and then make sure to use python3 and pip3 (set alias for python and pip to python3 and pip3 respectively) and then pip install sphinx.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like