diff --git a/setup.py b/setup.py
index 60b3ddc8afa20961918ac1ebd9cc0c6134dbf168..0edf92045da31f6047bfaa96ff24218a270c41d0 100644
--- a/setup.py
+++ b/setup.py
@@ -182,7 +182,7 @@ def setup_package():
     python_requires = '>=3.6'
     extras_require = {
         'dev': ['pytest', 'pytest-cov'],
-        'doc': ['sphinx==4.5', 'numpydoc', 'sphinx_gallery', 'matplotlib', "sphinx_rtd_theme"]}
+        'doc': ['sphinx==5.0', 'numpydoc', 'sphinx_gallery', 'matplotlib', "sphinx_rtd_theme"]}
     include_package_data = True
 
     setup(name=name,