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

Thread Tools

Similar help and support threads
Thread Forum
History of executed (.exe) applications
Hello Can somebody help me? I'm looking for a solution where I can see a list and history of executed applications like .exe and .bat and .com? The only solution I have here is the 'Recent Items' in the start bar but it shows only documents and media, no apps.
General Discussion
Recovery from Diskpart> Clean executed on the wrong drive
I wanted to do create a bootable usb and was using DISKPART for that purpose. I don't know what I was thinking, I chose the wrong drive (the one containing all my life's worth of data :(( ) and performed the following operations: DISKPART LIST DISK SELECT DISK 1 CLEAN CREATE PARTITION...
General Discussion
The scheduled task are executed even if Windows is started in safe mod
Hi In Windows 7 SP1, the scheduled tasks, run at system startup, are executed even if Windows is started in safe mode? Thanks Bye
General Discussion
Help for outlook not being executed since .pst file missing
I wanted to get outlook.pst back.. Since i just wanted to execute outlook.exe but it was not getting executed since outlook.pst file was missing.. But i found a method.. C:/users/me/appdata/local/Microsoft/outlook/yourfilename.pst Copy it to C:/documents/outlook and when the error arises while...
Microsoft Office
python software
Not sure where to post this. I am trying to learn using python. ( I know absolutely nothing about computer language other than Basic Language about 30 years ago.) I have googled and found python tutorials. My question is... I need to install the python software first. Is that correct ? I saw...
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 02:09.
Twitter Facebook