[Tutor] Cannot run python programs on my windows7 computer

Brian van den Broek brian.van.den.broek at gmail.com
Wed Mar 14 11:42:53 CET 2012

On 14 Mar 2012 02:56, "Tamar Osher" <emeraldoffice at hotmail.com> wrote:
> Hello.  Is there someone who can tutor me about how to "run" Python files
on my windows7 computer?  I have IDLE (the white box, the Python shell).  I
have the command prompt (the black box).  And I also have Notepad++ on my
computer.  I have a total of 3 ways of trying to run my Python programs.  I
have tried and tried.  The books

Hi Tamar,

I remember that I found it a bit non-obvious to get this working when I
started with python, too. Unfortunately, that is nearing a decade ago and I
don't recall what the bump was.

If you can get idle going, you can run programs. On the File menu, New
opens a new editor window where you can type a program and Open opens an
extant file. It also provide a different menu with Run. If that doesn't run
your program, something is messed up with your install.

Idle isn't always the best choice; you'll want to be able to run from a
command shell (the "black box"), too. What happens when you type 'python'
there? If you get a python prompt, save a file mytest.py that has the sole
somewhere and try 'python full\path\to\mytest.py'. If you don't get a
python prompt on typing 'python' type 'path' and report your result.

I don't have a windows box, so I am going on memory and might have got
things wrong.

As for top posting: notice how my text follows yours? This means a reader
of this email hits the context before my content. If you are on a number of
lists and watching a number of threads, top posted emails are annoying as
you have to scroll down to read the context then up to read the content.
Whether that makes sense to you or not, the community from which you seek
help strongly prefers you not top post, so don't.


Brian vdB
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20120314/77300b88/attachment.html>

More information about the Tutor mailing list