I had the same issue while trying to install bots on a Windows Server. Took me a while to find a solution, but this is what worked for me:
reg add HKLM\SOFTWARE\Python\PythonCore\2.7\InstallPath /ve /t REG_SZ /d "C:\Python27" /f
and tailor for your specifications. Anyway, I hope that this can help someone in the future.