Running current Python script in Emacs on Windows

I just started learning Emacs and decided to start writing Python. I tried using Cc Cc to execute the current buffer, but I get a message Searching for program: no such file or directory, python.

I looked at Google, but I’m no wiser how to figure it out (remember that I don’t know anything about Emacs!)

+3
source share
2 answers

I managed to execute it by following the instructions here . I used python-mode.el when before I used Emacs built-in python.el, but according to emacswiki , "The version in Emacs 22 has a lot of problems." Hope someone else working with Emacs 22 on Windows XP finds this useful one day!

+3
source

Try adding C:\Python26(or any other Python you set) to your environment variable PATH.

I find python-mode and yasnippet to be useful for writing Python in emacs.

+2
source

Source: https://habr.com/ru/post/1713704/


All Articles