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

  • Home
  • SEARCH
  • 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 4029542
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T11:21:30+00:00 2026-05-20T11:21:30+00:00

(In windows) I have both Python 2.6 and 2.4 installed on a machine (for

  • 0

(In windows)

I have both Python 2.6 and 2.4 installed on a machine (for testing purposes). When I open a cmd and type python I get:

C:\>python  
Python 2.6.6 (r266:84297, Aug 24 2010, 18:46:32) [MSC v.1500 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.  

However, when I create a file named test.py with contents

import sys  
print(sys.version)

It displays:

C:\temp>test.py  
2.4.1 (#65, Mar 30 2005, 09:13:57) [MSC v.1310 32 bit (Intel)]

Why would this be? I’ve checked my path and I have c:\python26 in there. It seems .py files are associated with python 2.4. I would expect that to by an environment variable, but I don’t see it anywhere. I did install 2.4 after 2.6, so this makes some sense, but is there a list somewhere of what filetypes are associated with what executables?

  • 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-20T11:21:31+00:00Added an answer on May 20, 2026 at 11:21 am

    You need to review your file associations. In Windows Explorer choose Tools > Folder Options. On the File Types tab go find the .py extension and set it to the correct interpreter.

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

Sidebar

Related Questions

I am running a windows machine have installed Python 2.5. I also used the
I have python 2.6.6 and python 3.1.3 currently installed on my machine (Windows Vista
Have GHC 6.8.3 and wxHaskell-0.10.3 on a Windows XP computer. Installed both as binary
After a fresh installation of my Windows dev machine, I installed Python 2.7. Quickly
For both .NET Winforms and Windows Presentation Foundation, if I have a text box
I installed IronPython 2.6.1 on Windows Vista x64 on a machine with Visual Studio
I am currently running a Python scripts both on Linux and Windows 7. The
Does windows have any decent sampling (eg. non-instrumenting) profilers available? Preferably something akin to
I have Windows File sharing enabled on an OS X 10.4 computer. It's accessible
I have Windows Vista MCML app, and I need to figure out the current

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.