1

I have python 3.3 and 2.7 installed on my computer. Lately I decided to run python 2.7 more form Run, when previously python 3.3 was used. ("python" auto-completes in Run)

In order to do it, I changed the PATH system variable to C:\python27 from C:\python33.

When I run from CMD itself, python 2.7 opens. However, when I try to do it from Run, it doesn't work at all.

Any help? I am far more curios about the "why" rather then want a solution.

Notes: * I tried looking at HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\RunMRU, thinking about some sort of cache, but the paths there are of python27. * My user PATH variable is not relevant, I checked. * I tried removing python 2.7's path completely, however when I try running python, 3.3 opens.

3

1 Answer 1

2

Make sure you only have one python directory in your path varible. alternately, you can check HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\App Paths to see if you have a key for your python interpreter, and if not create a key indicating your executable. some more info here: http://commandwindows.com/runline.htm

1
  • Saved me there, thanks a lot!
    – mrexodia
    Jul 5, 2022 at 12:35

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .