Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

On my system (Windows Vista Home Premium 64bit) Python files are associated with Python interpreter:

C:\Users\Piotr>assoc .py
C:\Users\Piotr>ftype Python.File
Python.File=c:\python\2.7\python.exe "%1" %*

Nevertheless when I run any Python script from command line a window titled Open With pops up asking me to Choose the program you want to use to open this file.

share|improve this question

migrated from Aug 26 '11 at 0:46

This question came from our site for professional and enthusiast programmers.

Try Shift+Right Click on a .py file in explorer and selecting "open with..." and then manually selecting the python interpreter.

share|improve this answer
I have a couple of Python installations and I wrote batch files to switch among them. Manual procedure you describe is out of question. – Piotr Dobrogost Aug 26 '11 at 6:35

no, Keltari's suggestion should work. there is another checkbox that asks whether to use the settings for all files of this type.

Also, make sure your PATH (system/user environment variable) includes the path to your python executable.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.