Reputation: 19
how do I change the version of Python that emacs uses in the python-mode to the latest version that I just installed ?
I tried setting the PATH in my init.el file to the path where the latest version of python resides but its not working.
Upvotes: 1
Views: 821
Reputation: 65874
PATH
is only searched when a program is launched via the shell.
For programs that are launched directly by Emacs (for example, via call-process
), it's the exec-path
variable that is searched.
Upvotes: 0
Reputation: 90513
Set the variable python-python-command
. This can be done via customize
:
customize-option
RET python-python-command
RETUpvotes: 1