diff --git a/src/latex-make.dtx b/src/latex-make.dtx
index 2da754d38086a3a4679ca075cec48c07bc28bf71..06412aad2e2d52cdc5f8df6f48451c643b9b60e5 100644
--- a/src/latex-make.dtx
+++ b/src/latex-make.dtx
@@ -1778,7 +1778,7 @@ LaTeX-Make-local-install::
 %
 %    \begin{macrocode}
 %<*figdepth>
-#!/usr/bin/env python
+#!/usr/bin/env python3
 #coding=utf8
 
 """
@@ -1835,7 +1835,7 @@ if __name__ == "__main__":
 % \subsection{gensubfig}
 %    \begin{macrocode}
 %<*gensubfig>
-#!/usr/bin/env python
+#!/usr/bin/env python3
 #coding=utf8
 
 """
@@ -1903,7 +1903,7 @@ if __name__ == "__main__":
 % \subsection{svg2dev}
 %    \begin{macrocode}
 %<*svg2dev>
-#!/usr/bin/env python
+#!/usr/bin/env python3
 #coding=utf8
 
 from optparse import OptionParser
@@ -1972,7 +1972,7 @@ if __name__ == "__main__":
 % and underfull/overfull hbox/vbox.
 %    \begin{macrocode}
 %<*latexfilter>
-#!/usr/bin/env python
+#!/usr/bin/env python3
 #coding=utf8
 
 """
@@ -2042,7 +2042,7 @@ if __name__ == "__main__":
 % \subsection{svgdepth}
 %    \begin{macrocode}
 %<*svgdepth>
-#!/usr/bin/env python
+#!/usr/bin/env python3
 #coding=utf8
 
 import sys