diff --git a/modules/doc/install.rst b/modules/doc/install.rst
index 7ebda775fa2adcda5e62d5bcebec97ec1ea6c539..7eb570ca1165c7a26060140bb08386a797241158 100644
--- a/modules/doc/install.rst
+++ b/modules/doc/install.rst
@@ -370,11 +370,11 @@ C flags:
 
 .. code-block:: bash
 
-  cmake . -DPYTHON_INCLUDE_PATH=/usr/local/Cellar/python@3.8/3.8.3_1/\
-  Frameworks/Python.framework/Versions/Current/include/python3.8 \
-          -DPYTHON_LIBRARIES=/usr/local/Cellar/python@3.8/3.8.3_1/\
-  Frameworks/Python.framework/Versions/Current/lib/libpython3.8.dylib \
-          -DPYTHON_ROOT=/usr/local/Cellar/python@3.8/3.8.3_1 \
+  cmake . -DPYTHON_INCLUDE_PATH=/usr/local/opt/python@3.8/Frameworks/\
+  Python.framework/Versions/Current/include/python3.8/ \
+          -DPYTHON_LIBRARIES=/usr/local/opt/python@3.8/Frameworks/\
+  Python.framework/Versions/Current/lib/libpython3.8.dylib \
+          -DPYTHON_ROOT=/usr/local/opt/python@3.8/ \
           -DBOOST_ROOT=/usr/local \
           -DSYS_ROOT=/usr/local \
           -DOPTIMIZE=ON \