Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Executing current Python script in Emacs on Windows

Tags:

python

emacs

I've just started learning Emacs, and decided to start writing Python in it. I tried using C-c C-c to execute the current buffer, but I get the message Searching for program: no such file or directory, python.

I've looked on google, but I'm none the wiser as to how to sort this out (bear in mind I know next to nothing about Emacs!)

like image 625
Skilldrick Avatar asked Feb 01 '26 10:02

Skilldrick


1 Answers

I managed to work it out, following the instructions here. I used python-mode.el, when before I had been using Emacs' built-in python.el, but according to emacswiki, "The version in Emacs 22 has a bunch of problems". Hope someone else running Emacs 22 on Windows XP finds this useful one day!

like image 185
Skilldrick Avatar answered Feb 02 '26 23:02

Skilldrick



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!