Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 391811
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T16:05:52+00:00 2026-05-12T16:05:52+00:00

I used Komodo Edit 5 to write some .py files. My IDE window looks

  • 0

I used Komodo Edit 5 to write some .py files. My IDE window looks like this:

How do I actually run the .py file to test the program? I tried pressing F5 but it didn’t appear to do anything.

I also tried using IDLE, but it seems like you can only run a couple of lines at a time.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T16:05:52+00:00Added an answer on May 12, 2026 at 4:05 pm

    I’m very glad you asked! I was just working on explaining this very thing in our wikibook (which is obviously incomplete). We’re working with Python novices, and had to help a few through exactly what you’re asking!

    Command-line Python in Windows:

    1. Save your python code file somewhere, using “Save” or “Save as” in your editor. Lets call it ‘first.py’ in some folder, like “pyscripts” that you make on your Desktop.

    2. Open a prompt (a Windows ‘cmd’ shell that is a text interface into the computer):

      start > run > “cmd” (in the little box). OK.

    3. Navigate to where your python file is, using the commands ‘cd’ (change directory) and ‘dir’ (to show files in the directory, to verify your head). For our example something like,

      > cd C:\Documents and Settings\Gregg\Desktop\pyscripts

    4. try:

      > python first.py

    If you get this message:

    ‘python’ is not recognized as an
    internal or external command, operable
    program or batch file.

    then python (the interpreter program that can translate Python into ‘computer instructions’) isn’t on your path (see Putting Python in Your Path below). Then try calling it like this (assuming Python2.6, installed in the usual location):

    > C:\Python26\python.exe first.py

    (Advanced users: instead of first.py, you could write out first.py’s full path of C:\Documents and Settings\Gregg\Desktop\pyscripts\first.py)

    Putting Python In Your Path

    Windows

    In order to run programs, your operating system looks in various places,
    and tries to match the name of the program / command you typed with some
    programs along the way.

    In windows:

    control panel > system > advanced > |Environmental Variables| > system variables -> Path

    this needs to include: C:\Python26; (or equivalent). If you put it at the front,
    it will be the first place looked. You can also add it at the end, which is possibly saner.

    Then restart your prompt, and try typing ‘python’. If it all worked, you should
    get a “>>>” prompt.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Never used a cache like this before. The problem is that I want to
Used to know this, think its something like Ctrl + ??? + F11 .
used image as like map , user can zoom in/out this image.geting x and
I used telerik OpenAccess to connect to firebird Database with this ConnectionString : ServerType=1;User=SYSDBA;Password=masterkey;Dialect=3;Database=TEST.fdb
I used the phonegap website to create an IPA file. Now I want to
i used this code: List<string> lists=new List<string>(apple,orange,banana,apple,mang0,orange); string names; names=lists.Distinct() is that correct?
Used this script many times to pass 1 or 2 values to a PHP
I used SWIG for generating some native JNI function interface for Irrlicht C/C++ 3D
I used this code which found on forum without errors in 4.0.2a and now
I used to have flat scripts. The classic HTML+PHP in one file: $result =

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.