Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to Run a Python Script..? Need Help
#1
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 ++
Reply
#2
What version of Python are you using?
Reply
#3
(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
Reply
#4
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
Reply
#5
You could always just run it in IDLE. Just hit F5 when you are in the screen to type stuff.


-Rhynorater.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Python Help Dεlluzion 3 1,767 09-30-2019, 12:59 AM
Last Post: samsmith001
  Simple Python Python Compiler Canoris 21 8,350 06-01-2011, 06:30 PM
Last Post: Filefinder
  Python 2 vs 3? Jake 8 2,224 12-11-2010, 04:13 PM
Last Post: Bursihido
  Python help Kharnage 2 760 02-12-2010, 09:07 PM
Last Post: Kharnage
  "==" and "is" in Python Canoris 1 741 02-07-2010, 03:55 PM
Last Post: uber1337

Forum Jump:


Users browsing this thread: 1 Guest(s)