Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7: Different python is executed in cmd and win+R

23 Sep 2013   #1

win 7 pro x64
Different python is executed in cmd and win+R


I have two versions of python installed:


The c:\Python27_x64 is in %path% and there's nothing in the 'set' command that mentions 26. When I run python from cmd.exe the 27 version is executed as expected. On the other hand, when I run python from win+R the 26 version is run. The path (when directed into a file) in both cmd.exe and win+R is the same.
Any ideas?


My System SpecsSystem Spec

23 Sep 2013   #2

Windows 7 32 bit

Perhaps the 26 has an entry in the Prefetch folder? Try opening an Admin command prompt. Change directory (CD) to C:\Windows\Pefetch assuming Windows is installed on drive C:, then do "del *.*" and hit Enter. ( Make sure you are in C:\Windows\Prefetch before you delete all files!!! )

Try the Win+r and see if it does the same thing anyway. If it does, my theory is wrong.
My System SpecsSystem Spec
23 Sep 2013   #3

win 7 pro x64

I disabled the prefetch and its folder is empty.
I did a regedit search and changed some values, and now it's fine. I'm not sure what I changed, but it's might be:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\App Paths\Python.exe]
My System SpecsSystem Spec

24 Sep 2013   #4

Windows 7 32 bit

Ok. Glad you got it.
My System SpecsSystem Spec

 Different python is executed in cmd and win+R

Thread Tools

Similar help and support threads for2: Different python is executed in cmd and win+R
Thread Forum
Help for outlook not being executed since .pst file missing Microsoft Office
executed incorrect script, deleted files. Restore? Backup and Restore
Recovery from Diskpart> Clean executed on the wrong drive General Discussion
Solved python software Chillout Room
USB modem Autorun is executed even Autoplay is disabled Hardware & Devices
History of executed (.exe) applications General Discussion
Monty Python Chillout Room

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd

All times are GMT -5. The time now is 05:15 AM.
Twitter Facebook Google+

Windows 7 Forums

Seven Forums Android App Seven Forums IOS App

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33