python in Emacs (windows)

Mark Zweers zweers.mark at
Wed Apr 22 09:52:22 CEST 2009


I'm trying to run python from within Emacs. This is in my .emacs file :

(setq auto-mode-alist ; trigger python mode automatically
       (cons '("\\.py$" . python-mode) auto-mode-alist))
(setq interpreter-mode-alist
       (cons '("python" . python-mode)
(autoload 'python-mode "python-mode" "Python editing mode." t)

, but I got this message :

"Searching for program: no such file or directory, python"

So I've added the following line :

(setq py-python-command '("C:/Program Files/Python"))

This is the path where my 'python.exe' is located. But then this message

Using the CPython shell
let: Wrong type argument: integerp, "C:/Program Files/Python"

Could anyone tell me how to solve this? Thanks a lot in advance!

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Python-list mailing list