如何为emacs配置python.el以使用python3 shell? [英] how to configure python.el for emacs to use python3 shell?

查看:50
本文介绍了如何为emacs配置python.el以使用python3 shell?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是emacs的新手.我安装了具有内置python模式(python.el)的emacs24.我找不到此文件,也不知道如何配置它以使用python3 shell(默认情况下使用python2.7).谢谢

I am new to emacs. I installed emacs24 which has a built-in python mode(python.el). I cannot find this file and don't know how to configure it to use python3 shell (it's using python2.7 as default). Thannks

推荐答案

M-x customize-variable RET python-shell-interpreter RET

将其设置为python3.之后,M-x run-python RET应该打开一个Python3 shell.

Set it to python3. Afterwards M-x run-python RET should open a Python3 shell.

如果仍然无法运行,请检查$ PATH,确保显示了包含python3可执行文件的目录.

If not working yet, check $PATH, make sure the directory holding python3 executable appears.

这篇关于如何为emacs配置python.el以使用python3 shell?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆