Different python is executed in cmd and win+R


  1. Posts : 7
    win 7 pro x64
       #1

    Different python is executed in cmd and win+R


    Hi,

    I have two versions of python installed:

    c:\Python26_x64
    c:\Python27_x64

    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?

    Thanks,
    Zohar
      My Computer


  2. Posts : 5,092
    Windows 7 32 bit
       #2

    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 Computer


  3. Posts : 7
    win 7 pro x64
    Thread Starter
       #3

    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]
    @="C:\\Python27_x64\\Python.exe"
      My Computer


  4. Posts : 5,092
    Windows 7 32 bit
       #4

    Ok. Glad you got it. :)
      My Computer


 

  Related Discussions
Our Sites
Site Links
About 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 00:40.
Find Us