Python Forum

Full Version: How to add Python folder in Windows Registry ?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
While trying to uninstall python to solve some errors, I have deleted that folder in the Windows Registery (and all the subfolder as well then): HKEY_LOCAL_MACHINE\SOFTWARE\Python.

That was probably reckless, and now even if I reinstall Python, the folder is gone and it looks like Windows can not find Python even though it has been defined in the Path variables.

I don't have any back-up of my Windows (can't restore a previous version) and upgrading Windows doesn't seem to work neither.

Any idea how I could solve this ?

Thanks
I guess you made before a normal program installation, which requires elevated Rights. Then it's installed for all users systemwide.

I don't have this key, because I always use user-program installation,
where Python is put into
C:\Users\USERNAME\AppData\Local\Programs\Python\PythonX.Y
and the keys are in HKEY_CURRENT_USER\Software\Python.

If you install Python System wide, the other key should be created.