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