Can anyone plz tell me an IDE for running python programs. Is it possible to run the program through command line?
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
:
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
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
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
I like the EasyEclipse for python distribution. You'd need to have python and java installed of course.
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