I have been unable to get my Aquamacs 3.5 (built on Gnu Emacs 25.3.50.1) to run Python 3. I have put the following lines in both my Preferences.el
(the Mac equivalent of .emacs) and within an explicit .emacs
without success. However, I do get Python 3 when I run straight GNU emacs 27.1 both from the Command Line and using the MacPorts Emacs.app.
(setq python-shell-interpreter
"/Users/pcolsen/opt/anaconda3/bin/python3")
(setq py-python-command "/Users/pcolsen/opt/anaconda3/bin/python3")
(add-hook 'python-mode-hook
#'(lambda () (setq py-python-command "/Users/pcolsen/opt/anaconda3/bin/python3")))
(add-hook 'python-mode-hook
#'(lambda () (setq python-shell-interpreter "/Users/pcolsen/opt/anaconda3/bin/python3")))
I have also set the environment variable PYTHON to
export PYTHON="/Users/pcolsen/opt/anaconda3/bin/python3"
Despite all of this, my Aquamacs persists in running Python 2.7. Is there anything else I can do?
The specific version of Aquamacs is Aquamacs 3.5 GNU Emacs 25.3.50.1 (x86_64-apple-darwin16.7.0, NS appkit-1504.83 Version 10.12.6 (Build 16G2016)) dated 2019-08-18 rev.