Variable: python-interpreter

python-interpreter is a customizable variable defined in python.el.gz.

Value

"python3"

Documentation

Python interpreter for noninteractive use.

Some Python interpreters also require changes to python-interpreter-args.

To customize the Python interpreter for interactive use, modify python-shell-interpreter instead.

This variable was added, or its default value changed, in Emacs 31.1.

Probably introduced at or before Emacs version 30.1.

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/python.el.gz
(defcustom python-interpreter
  (cond ((executable-find "python") "python")
        (t "python3"))
  "Python interpreter for noninteractive use.
Some Python interpreters also require changes to
`python-interpreter-args'.

To customize the Python interpreter for interactive use, modify
`python-shell-interpreter' instead."
  :version "31.1"
  :type 'string)