I had the Same issue, googled around and managed to solve the solution. here's what I came across.
Python appears to update the registry under HKEY_CURRENT_USER and some install look for python under HKEY_LOCAL_MACHINE.
Useful Sources I came across
- Source 1
- Python Version 2.7 required which was not found in the registry
- Restoring Your Python Registry in Windows
So assuming your python installation is at C:\python27
From this Restoring Your Python Registry in Windows article -
- Copied from lines
17 - 21
,[HKEY_CURRENT_USER\Software\Python\Pythoncore\2.7\InstallPath]
@="C:\python27"
[HKEY_CURRENT_USER\Software\Python\Pythoncore\2.7\PythonPath] @="C:\python27;C:\python27\Lib\;C:\python27\DLLs\" - Paste them to a text file.
- Rename it to
fix_python.reg
or anything you wish :) - Double-click the file, and follow the prompts to load the new values into the Windows Registry.
Hope it helps.