简体   繁体   中英

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

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

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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM