gpt4 book ai didi

python - emacs 24.3.1 选择了 python 版本 - 缺少变量?

转载 作者:太空宇宙 更新时间:2023-11-03 11:30:02 27 4
gpt4 key购买 nike

我的 Linux Mint 上安装了不同的 python 版本(2.7 和 3)。 Emacs 默认情况下(至少在我的情况下)选择旧版本。

如何选择较新的?

尝试更改以下变量(如此处建议:https://stackoverflow.com/a/5952671/3459537 或此处:https://stackoverflow.com/a/2520486/3459537)不起作用,因为它不存在?! [不知道为什么...]

(setq python-python-command "python3")

与此相同(可在此处找到:http://www.bnikolic.co.uk/blog/python-running-emacs.html):

(setq py-python-command "/usr/local/bin/python3")

有什么建议吗?提前致谢。

最佳答案

假设一个人使用普通的 python.el:

只需自定义变量 python-shell-interpreterpython3

关于python - emacs 24.3.1 选择了 python 版本 - 缺少变量?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23136633/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com