Trouble reinstalling Python(x,y) - python

Python(x,y) was previously installed on my computer but I had to reinstall it due to some reasons. The problem occurs when I try to install it again. I get a message at the beginning of the installation where it says "could not write updated path to HKLM." I have cleared almost the entire registry of everything that mentions python in any way, deleted all python folders and deleted python from the system path but the problem will not go away.
Any solutions?

Related

Python 3.8.0 Setup Failed - 0x80070666 Another version of this product is already installed / No Python installation detected

I installed 3.8.7, the dependencies didn't match up with the project I was trying so I uninstalled 3.8.7 and wanted to try 3.8.0. I get this error every time.
Things I've tried:
Using Windows "Remove apps and programs". Doing this results in an error "No python 3.8 installation was found", an incredibly frustrating contradiction.
Trying everything from this thread, including removing environment variable paths, deleting registry \SOFTWARE\Python\PythonCore3.8 (it was only there for HKEY_CURRENT_USER and wasn't there for HKEY_LOCAL_MACHINE)
Tried uninstalling 3.8.7 with my 3.8.7 installation .exe, which brings up a "Modify Setup" screen (so it recognizes an installation somehow), but clicking uninstall brings up an error "No Python 3.8 installation was detected." I also tried the "Repair" option, which gives the same error. Choosing the "Modify" option shows me where another installation was (on my OS hard drive) that I deleted, and then ultimately going through with the modify process resulted in the same error as the other two options.
Every time I run a Python uninstallation it recreates the registry keys and the folders, but in the OS drive where none of my installations are. I can't direct the uninstallation program to uninstall from another path.
I'm thinking it's a combination of choosing my own installation paths (which is almost always never worth the trouble it causes) and the fact that my Python paths are not on my OS drive.
I had the same problem, do the follwoing:
Modify your installation
go to Settings -> Apps
search for pyton 3.8
click on modify instate of unistall
execute the modification with default settings
enter image description here
Reinstall python
use the installer and install python again

Atom says I need to install Python through Microsoft Store but I have Python Installed

PyCharm was being stupid so I decided to use Atom. Before, I had stupidly downloaded Python from the official website and the Microsoft store, so it caused errors on PyCharm which meant I had to use Atom.
However, recently I managed to fix that issue by uninstalling Python from the Microsoft store and installing the latest version of Python with the PATH properly configured, but it only fixed PyCharm but not Atom.
However, whenever I try to run a script on Atom, I get this error message:
Python was not found but can be installed from the Microsoft Store: https://go.microsoft.com/fwlink?linkID=2082640
I have Python installed from the website but not the MS store. Any ideas how to fix this?
It should not matter whether you download Python from the Microsoft Store or from python.org. What matters is that Python is installed on your system and that any application using that version of the interpreter can access it. Typically, this means that you have any entry on your PATH environment variable to the directory of your Python interpreter.
From what you've described, it sounds like you may have had more than one version on your system at the same time, and then you removed one and made some modifications to your PATH variable. I would confirm that your PATH variable is correct and that you can run the Python interpreter from a Command Prompt window by invoking it directly. If you can do that, then Atom ought to be able to find your Python interpreter. If it cannot, then I would recommend uninstalling and reinstalling Atom rather than uninstalling and reinstalling Python.
I would like to help more, but would need more info about your system to provide a more specific steps.

Don't know how to fix a broken Python installation

I was trying to install a SQL-Python connector and kept receiving an error that it could not find the python installation. It said that it only accepted the version used by the installer from the python website so I downloaded that and tried to install it in the same path where my python was (C:\Python38) but then saw that it was installing a 32-bit version of python there so I cancelled the install mid-install (this was a mistake). I think I did that at the wrong time because now the folder still exists but it had deleted some parts of my python installation. So now I'm in a weird place where I can't install python (When I open the 64-bit installer it only gives me the option to Modify, Repair or Uninstall, and all of those shoot up errors where it says that it can't find the python installation). The 32-bit version does allow me to try and install but I get an error saying "The File 'python.dll' cannot be installed because the file cannot be found in cabinet file 'cab1.cab.'"
If I try and uninstall python from the Windows uninstaller I also get errors that there is no python version to install.
I tried just deleting the folder from my system but that doesn't work either. Not sure how to bring my computer back to a state where I can do a fresh python install. Is there any way?
What I did, and I am not sure that it was the cause of solving the problem, was to delete the 'python.exe' and 'python3.exe' files that where in 'C:\Users\Usuario\AppData\Local\Microsoft\WindowsApps'. As the user don't have access to delete them from the files explorer, I entered from cmd as administrator and deleted them with the 'del' command.
Again I am not sure if that was the cause but I think it worked for me while I was trying to delete all python related files to reinstall.

Unable to unistall python from the system - fatal error during installation

I am trying to uninstall the python from my system. However, I am getting on error each time -
Setup Failed - Fatal error during installation.
Versions - 3.6.8 and 3.6.0
What I have tried so far -
Removed the environment variables
Deleting the python folders from the C:\Users**\AppData\Local\Programs\Python\
But nothing is working.
I need to clean up my system and freshly install only one version.
I would suggest repairing instead of installing. Deleting folders from your system would cause issues with the uninstallation process trying to find and delete all python on your system. Your best bet is to repair it to a working state, then delete it so the uninstall program finds everything and deleted everything properly. Don't delete anything on your own.

Problems in fully uninstalling Python 2.7 from Windows 7

some months ago, I installed Python 2.7 on my laptop (my os is Windows 7).
After, I decided to use Python xy 2.7.3 instead of 'pure' Python; so, as suggested, I removed Python 2.7 and tried to install Python xy 2.7.3. However, when I tried to run the .exe file for installation, a warning window appears telling me that Python 2.7 is already installed on my computer. I tried to install a different version of Python xy (2.6) and everything went fine; however, I'd really prefer to use the latest version of Python xy.
Actually, I can't figure out what went wrong whie uninstalling Python 2.7; does someone have any clue?
I can tell you that I followed the 'normal' procedure for programm uninstalltion; control panel -> Programs -> Remove Program
Thanks in advance
Stefano
Run regedit, backup and delete the registry keys:
HKEY_LOCAL_MACHINE\Software\Python\
HKEY_CURRENT_USER\Software\Python
My problem occurred when changing from Canopy to Python(x,y).
So, also delete all folders that are left behind when uninstalling.
https://support.enthought.com/entries/23580651-Uninstalling-Canopy
I also had this issue as well. It was due to third party installs. Even though you have uninstalled python, it leaves all the third party libraries that were installed and I think Python(x,y) just detects the directory.
To fix, uninstall Python 2.7 and then check to see if C:\Python27 still exists. If it does, go ahead and delete and then try installing Python(x,y). That is what worked for me.
I faced this issue: I tried to uninstall the python and fresh install, reason my pip version issue was not getting resolved. So I deleted the python folder, removed python from system path, and when I tried to uninstall from "Uninstall a program" in control panel, it showed "Windows installation package" error window and could not clean uninstall.
Solution what i found was: In the "Uninstall a program" select python and click repair. And then uninstall the python, it worked for me. Hope this helps and save some time.
PS: I am pretty new to python, and any help correcting me would be appreciated.
Maybe to put an answer out there.
Uninstalling anything from windows can have multiple side effects residing completly on your specific machine. As to what is common:
-> Python sets itself in your windows path. Here is how to modify your windows path: http://www.computerhope.com/issues/ch000549.htm
It means that there is a probability that python is gone but the path entry might not be. That is a guess however -> more information needed
-> Are you sure that everything was removed from your computer? If you already did the normal uninstalling process - try to look up if any python directory is still present.
-> Thirdparty installed? Have you downloaded any libs that are still on your machine.
Besides from that - it could be anything - the more information you give us the more we can say about it.
Maybe this post will help you: How to completely remove Python from a Windows machine?
I had python 2.7.12 and wanted to uninstall it for 2.7.9. I had the same problem as you and to fix it I tried to delete all of the local files and then uninstall however it still gave me the same error. So instead I decided to repair the python 2.7.12 and then uninstall which worked perfectly and completely got rid of the error.
I had python 2.7 installed and enthought canopy. I wanted to switch to python(x,y) to access a full version of the OpenCV library. python(x,y) installation complained about python 2.7 already being installed after:
1)Using windows control panel
2)Removing all lingering python files
3)Removing the windows path as suggested above
Not until I removed all registry entries related to python/enthough did python(x,y) install without issue.
I installed Enthought before. When I wanted to install Python(x,y) instead, I met the problems above.
After I had tried to uninstall Enthought and Python(x,y) from the Control Panel and then restart the PC, the problem still occured the next time I installed Python(x,y).
I solved this problem by:
deleting all the relevant files in C:/User/UserName/AppData/ about Python, including the third party softwares like Enthought;
deleting the Path in user and system Environment;
=====the two steps were failed if I didn't do the third step.=====
deleting the register keys as #Daniel said. (include all the relevant keys with the prefix py if you installed the third party software about Python. )
HKEY_LOCAL_MACHINE\Software\Python\
HKEY_CURRENT_USER\Software\Python
Locate that set up file which was used to install Python. Run it and choose repair. If that doesn't solve the problem. Go to c:\Python(x,y) and delete this folder completely by shift+Del.
Run that set up file again and click on "Change" which will ultimately install the Python again. By default in my case option to add path and making that version of Python the default on my system was unchecked which can be figured out by seeing the red cross mark in one of the installation screen. Click on it if you want set up to make it default Python version and also click on the option to indicate you want the path to be added in windows environment variable.
No need to touch registry as previous ones will be overwritten again.
In my case it worked. I was getting error like:
Fatal Python error: Py_Initialize: unable to load the file system codec
LookupError: no codec search functions registered: can't find encoding
Besides that un-installation was failing from control panel. So above steps solved all of my problem. Hope it helps.
I Repaired/Modified to install all the components for the Python
version I wanted to uninstall.
Once that was done, I clicked on Uninstall/Change and that uninstalled it for good.

Categories