how to configure python.el for emacs to use python3 shell?

感情迁移 提交于 2021-02-07 10:38:39

问题


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


回答1:


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

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

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



来源:https://stackoverflow.com/questions/23852308/how-to-configure-python-el-for-emacs-to-use-python3-shell

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!