python - Mac 上的 Emacs for Python - python-mode 继续使用默认的 Python 版本

标签 python emacs

如何将 emacs 在 python 模式下使用的 Python 版本更改为我刚刚安装的最新版本?

我尝试将 init.el 文件中的 PATH 设置为最新版本的 python 所在的路径,但它不起作用。

最佳答案

设置变量python-python-command 。这可以通过customize来完成:

  1. M-x customize-option RET python-python-command RET
  2. 更改值以指向适当的二进制文件。

关于python - Mac 上的 Emacs for Python - python-mode 继续使用默认的 Python 版本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4140943/

相关文章:

emacs - 如何使多个公式行在组织模式表中工作

python - 如何为 python 3 配置 spacemacs?

Python-打印字典中的多个内容时出现问题

python - 如何编写用于水平显示多个复选框的小部件?

python - 导入错误:没有名为函数的模块

python - 在 Python 中使用 Gekko 运行时间序列线性优化

python - 为什么 exec 不定义我的变量?

emacs - 在 GNU Emacs 中使用鼠标选择粘贴

c++ - 在 Windows 上使用 Emacs 编译 C++ 程序

emacs - idris-mode – 缓冲区没有进程