[英]How do I properly uninstall/fix python 3.8.5 when the installer doesn't work?
After messing up my pip installation (I interrupted an update), I tried reinstalling python, but it didn't fix pip. After trying to uninstall python and re-install it manually, the installer just simply won't work for 3.8.5.在弄乱我的 pip 安装后(我中断了更新),我尝试重新安装 python,但它没有修复 pip。在尝试卸载 python 并手动重新安装后,安装程序根本无法用于 3.8.5 . After removing all python directories (to my knowledge), it still shows up in control panel, and the installer sees it, but can't uninstall it.
删除所有 python 目录后(据我所知),它仍然出现在控制面板中,安装程序可以看到它,但无法卸载它。 All it says is "uninstall successful".
它只说“卸载成功”。 Older versions would not install as they detect an existing installation.
旧版本不会安装,因为它们检测到现有安装。
The files I've removed:我删除的文件:
%programfiles%\python
%programfiles%\python
%appdata%\python%appdata%\python
%userprofile%\local\programs\python%userprofile%\local\programs\python
%userprofile%\local\programs\pip%userprofile%\local\programs\pip
I have also removed python from path, and the registry entry.我还从路径和注册表项中删除了 python。
For any more information, feel free to comment.如需更多信息,请随时发表评论。
Thanks in advance提前致谢
I had to remove the registry key from我不得不从中删除注册表项
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall
with information from this article .与这篇文章的信息。 Then I brought up the uninstaller prompt again, which still showed the "Modify, Repair & Uninstall" options from earlier, but I right-clicked the icon on the taskbar (When a program is open) and clicked on properties, finding the path to that executable:
然后再次弹出卸载程序提示,仍然显示之前的“修改,修复和卸载”选项,但我右键单击任务栏上的图标(当程序打开时)并单击属性,找到路径该可执行文件:
%userprofile%\AppData\Local\Package Cache\{de694e50-e0d0-48a5-9a7a-56fd037154e2}
I deleted that file, and then when I clicked "uninstall" in control panel again, it said if I'd like to remove it from the program list as it couldn't find it.我删除了那个文件,然后当我再次点击控制面板中的“卸载”时,它说如果我想从程序列表中删除它,因为它找不到它。
After that, the installer now can't see Python installed.之后,安装程序现在看不到已安装 Python。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.