开发者

Emacs on Mac for Python - python-mode keeps using the default Python version

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 p开发者_运维技巧ython resides but its not working.


Set the variable python-python-command. This can be done via customize:

  1. M-x customize-option RET python-python-command RET
  2. Change the value to point to the appropriate binary.


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜