tags:

views:

156

answers:

4

Can anyone plz tell me an IDE for running python programs. Is it possible to run the program through command line?

+2  A: 

Take a look at ActiveState's ActivePython. It's quite a nice implementation of Python on Windows. Another way is using Cygwin's Python port. These two are Python implementations. I don't use an IDE, I write my Python code in Notepad++.

To run a python program after saving it to C:\Users\vaibhav\Code\myscript.py:

  1. ActivePython: If I remember right, ActiveState updates the path correctly. So it should be a s simple as:

    • Press "start" in the task bar
    • In the search field search for "cmd"
    • In the appearing box navigate to your folder with the python script: dir Users\vaibhav\Code
    • call python myscript.py and you're done
  2. Cygwin: After installing Cygwin, you have a full-featured bash terminal on your Windows machine.

    • click on the Cygwin icon on your desktop
    • In the appearing window navigate to the folder with your python script: cd /cygdrive/c/Users/vaibhav/Code
    • type python myscript.py
    • e voila
Boldewyn
how do you run the program after scripting in NOTEPAD++??
vaibhav
Via command line. I'll update my answer.
Boldewyn
What do you need cygwin for? Python works fine on windows, there is no need for that.
nikow
What do you need Windows for, if there isn't Cygwin installed?
Boldewyn
+3  A: 

IDE for running scripts? You can have any IDE you like, but if you need only to run python scripts you go like this:

python.exe pythonScript.py

argh
does'nt that require to set class path for python?
vaibhav
well yes, but if I recall correctly pyton installer should do this for you...
argh
A: 

I like the EasyEclipse for python distribution. You'd need to have python and java installed of course.

extraneon
A: 

PyDev and Komodo Edit are 2 nice Python IDE on Windows.

I also like the SciTE text editor very much.

These 3 solutions make possible to run Python scripts

luc