Support Forums

Full Version: How to Run a Python Script..? Need Help
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Today i have started to learn python

i have created a simple script with notepad ++ like below

[Image: Et5pf.png]

after that i want to run it through python terminal but it showing error like this

[Image: kWp0a.png]

can you please give me a detailed tutorial how to run python script using python 2.7 and notepad ++
What version of Python are you using?
(04-07-2012, 09:25 AM)Rhynorater Wrote: [ -> ]What version of Python are you using?

python 2.7
windows 7 ultimate 32 bit
notepad + +
above is my current stuff Smile
Add python.exe directory to an environment variable, then call it and pipe the script to the first argument. Example:

Code:
python "python/dir/scipt/location/testscript.py"

Unless your CLI is already running in the directory of the script:

Code:
python script.py
You could always just run it in IDLE. Just hit F5 when you are in the screen to type stuff.


-Rhynorater.