Hi Daniel,

Daniel Wolff wrote:
> Hello, I am trying to get python to work with GNU emacs 22.1 on >windows. I am trying to get the default python.el that comes with emacs >to work.

I'm using Emacs 22.2.1 on windows with both the Windows python and cygwin python.

> In particular, I am having difficulty actually starting python with
> emacs. Eg. If I open a .py file and try to send it to the interpreter >with C-c C-c, or try to run it directly, M-x run-python, or try to >start it from the python menu (“Start Interpreter”) – all three lead to >the same message: “apply: Searching for program: no such file or >directory, python.”

Are you using the default Windows cmd.exe shell?

If so try M-x shell and then:

python -i

That should work better for you.

What does (getenv "PATH") - eval the expression in a scratch buffer or from the minibuffer it should list your paths. Is Python on your path?

I had issues with default python.el with windows - specifically starting the cygwin python interpret though. You could try the updated/patched version of python.el mentioned here:

http://www.emacswiki.org/cgi-bin/wiki/PythonMode


Darren


_______________________________________________
Python-mode mailing list
Python-mode@python.org
http://mail.python.org/mailman/listinfo/python-mode

Reply via email to